Skip to content

Commit d2b1526

Browse files
committed
keep this for now
1 parent ce4ca53 commit d2b1526

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/gamut/src/Popover/Popover.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,6 @@ export const Popover: React.FC<PopoverProps> = ({
133133
*/
134134
if (targetElement.contains(target)) return;
135135

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
148136
onRequestClose?.();
149137
},
150138
[onRequestClose, targetRef]

0 commit comments

Comments
 (0)