ui
ui copied to clipboard
Tooltip within Sheet is displayed when Sheet is opening
When the user clicks the trigger to open a Sheet
A nested tooltip is triggered
And displays during the opening animation, even though the user is not hovering over it (glitching back and forth across the screen)
have the same issue, happening with a tooltip nested in a dialog
I have same issue with tooltip and dialog here
Unfortunately my "workaround" was "Not using shadcn/tooltip"
I'm using Tremor.so for dashboard components and their Icon component has built-in tooltip support
Hello @lacymorrow @brianyu20 @Sotatek-HiepNguyen2 I have the same issue and solve it adding :
<SheetContent onOpenAutoFocus={(event) => event.preventDefault()}>
to my Sheet content component to avoid it
@shadcn I think we could close this issue ;)
This should be added to the docs first.
I have the same issue using the Tooltip as an info icon within the DialogHeader. Using defaultOpen={false} on Tooltip doesn't do anything. Interestingly enough switching it to defaultOpen="false" does do the job, but throws a typescript error for using a string.
@ts-ignore
But you may also try moving the tooltipprovider higher up the DOM
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.