Skip to content

Commit

Permalink
Fixed Dropdown Menu trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown503 committed Dec 29, 2023
1 parent c31c972 commit 8059aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/dropdown-menu/src/DropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const DropdownMenuTrigger = React.forwardRef<DropdownMenuTriggerElement, Dropdow
disabled={disabled}
{...triggerProps}
ref={composeRefs(forwardedRef, context.triggerRef)}
onPointerDown={composeEventHandlers(props.onPointerDown, (event) => {
onClick={composeEventHandlers(props.onClick, (event) => {
// only call handler if it's the left button (mousedown gets triggered by all mouse buttons)
// but not when the control key is pressed (avoiding MacOS right click)
if (!disabled && event.button === 0 && event.ctrlKey === false) {
Expand Down

0 comments on commit 8059aaa

Please sign in to comment.