Open glook opened 1 year ago
Hello! Any updates on this issue?
Still buggy
I found a solution. It does not "solve" the problem, but works anyway.
https://codesandbox.io/s/preact-radix-ui-react-tooltip-issue-forked-kys9rl?file=/src/tooltipDemo.tsx
Just import useState
and create a boolean-state and its stateUpdater, and pass them as open
and onOpenChange
properties of <Tooltip.Root>
.
I found this technique in the code of shadcn/ui's Collapsible-demo.
@nikogoli Very interesting find, I really wonder if it's some kind of double event firing/... but it stands out that if other libraries are running into it that it might not be isolated to preact 😅
Describe the bug Radix tooltips immediately closing after hover on element
To Reproduce
https://codesandbox.io/s/preact-radix-ui-react-tooltip-issue-lshsmd?file=/src/App.tsx
Steps to reproduce the behavior:
Expected behavior Expected that tooltip will be visible all time when cursor is hover button