We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f733a commit d074cfaCopy full SHA for d074cfa
packages/clay-shared/src/Overlay.tsx
@@ -114,8 +114,10 @@ export function Overlay({
114
115
useInteractOutside({
116
isDisabled: isOpen ? !isCloseOnInteractOutside : true,
117
- onInteract: () => {
118
- onHide('blur');
+ onInteract: (event: Event) => {
+ if (event.button === 0) {
119
+ onHide('blur');
120
+ }
121
},
122
onInteractStart: (event) => {
123
if (overlayStack[overlayStack.length - 1] === menuRef) {
0 commit comments