Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti committed Aug 1, 2024
1 parent 37d0a94 commit d465487
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/fuselage/src/components/Menu/V2/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ function MenuItem({ item, state }: MenuItemProps) {
isDisabled,
} = useMenuItem({ key: item.key }, state, ref);

// There's an issue caused by conflicting event handlers. The popover opens on onPointerDown and the selection event for both, the menu (listbox), happens on onPointerUp.
// As a workaround, we are overwriting `onPointerDown` event with `onPointerUp`

return (
<MenuOption
{...mergeProps(menuItemProps, { onPointerDown: onPointerUp })}
Expand Down

0 comments on commit d465487

Please sign in to comment.