From 8059aaa7eb859efe6ad1048fee2a7ccc3226c1a3 Mon Sep 17 00:00:00 2001 From: unknown503 <76271441+unknown503@users.noreply.github.com> Date: Fri, 29 Dec 2023 18:02:33 -0500 Subject: [PATCH] Fixed Dropdown Menu trigger --- packages/react/dropdown-menu/src/DropdownMenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/dropdown-menu/src/DropdownMenu.tsx b/packages/react/dropdown-menu/src/DropdownMenu.tsx index 20c4fe8a5..b86c54992 100644 --- a/packages/react/dropdown-menu/src/DropdownMenu.tsx +++ b/packages/react/dropdown-menu/src/DropdownMenu.tsx @@ -114,7 +114,7 @@ const DropdownMenuTrigger = React.forwardRef { + 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) {