diff --git a/app/client/src/widgets/ButtonGroupWidget/component/index.tsx b/app/client/src/widgets/ButtonGroupWidget/component/index.tsx index 654764d2a1..c8f4957316 100644 --- a/app/client/src/widgets/ButtonGroupWidget/component/index.tsx +++ b/app/client/src/widgets/ButtonGroupWidget/component/index.tsx @@ -347,25 +347,22 @@ function PopoverContent(props: PopoverContentProps) { onClick, textColor, } = menuItem; - if (iconAlign === Alignment.RIGHT) { - return ( - } - onClick={() => onItemClicked(onClick, buttonId)} - text={label} - textColor={textColor} - /> - ); - } + return ( } + icon={ + iconAlign !== Alignment.RIGHT && iconName ? ( + + ) : null + } key={id} + labelElement={ + iconAlign === Alignment.RIGHT && iconName ? ( + + ) : null + } onClick={() => onItemClicked(onClick, buttonId)} text={label} textColor={textColor}