Skip to content

Commit

Permalink
align dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
nyomanjyotisa committed Jul 25, 2024
1 parent a6793cb commit f84428a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/ButtonWithDropdownMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ function ButtonWithDropdownMenu<IValueType>({
success={success}
pressOnEnter={pressOnEnter}
ref={(ref) => {
caretButton.current = ref;
if (!isSplitButton) {
caretButton.current = ref;
}
}}
onPress={(event) => (!isSplitButton ? setIsMenuVisible(!isMenuVisible) : onPress(event, selectedItem.value))}
text={customText ?? selectedItem.text}
Expand Down

0 comments on commit f84428a

Please sign in to comment.