Skip to content

Commit eb9e08c

Browse files
fix: handle events even if there are no anchors
1 parent e1264e6 commit eb9e08c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/components/Tooltip/Tooltip.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,6 @@ const Tooltip = ({
302302
elementRefs.add({ current: anchorById })
303303
}
304304

305-
if (!elementRefs.size) {
306-
return () => null
307-
}
308-
309305
if (closeOnEsc) {
310306
window.addEventListener('keydown', handleEsc)
311307
}

0 commit comments

Comments
 (0)