We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce4ca53 commit d2b1526Copy full SHA for d2b1526
packages/gamut/src/Popover/Popover.tsx
@@ -133,18 +133,6 @@ export const Popover: React.FC<PopoverProps> = ({
133
*/
134
if (targetElement.contains(target)) return;
135
136
- // // Check if the clicked element itself is a floating element or is within one
137
- // const clickedElement = target as Element;
138
- // const isFloatingElement = clickedElement.closest(
139
- // '[data-floating="true"]'
140
- // );
141
- // if (isFloatingElement) {
142
- // // If clicking on our own floating element, close the popover
143
- // onRequestClose?.();
144
- // return;
145
- // }
146
-
147
- // Genuine outside click
148
onRequestClose?.();
149
},
150
[onRequestClose, targetRef]
0 commit comments