Skip to content

Commit

Permalink
fix: stop click event propagation on MenuItem (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-musallam authored Jan 19, 2023
1 parent 0637f05 commit fde9b13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/dropdown-menu/MenuItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ function Item<T>(props: ItemProps<T>) {
<Menu.Item disabled={option.disabled}>
{({ active }) => (
<ItemDiv
onClick={() => {
onClick={(event) => {
event.stopPropagation();
onSelect(option);
}}
active={active}
Expand Down

0 comments on commit fde9b13

Please sign in to comment.