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.
2 parents 73b235f + f19214a commit 3ac669fCopy full SHA for 3ac669f
packages/clay-shared/src/Overlay.tsx
@@ -114,8 +114,11 @@ export function Overlay({
114
115
useInteractOutside({
116
isDisabled: isOpen ? !isCloseOnInteractOutside : true,
117
- onInteract: () => {
118
- onHide('blur');
+ onInteract: (event) => {
+ // @ts-ignore
119
+ if (event.button === 0) {
120
+ onHide('blur');
121
+ }
122
},
123
onInteractStart: (event) => {
124
if (overlayStack[overlayStack.length - 1] === menuRef) {
0 commit comments