Tooltip Primitive doesn't position correctly when inner content changes. #2037
-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Hi @dholliday3! So sorry for the delay on this. I've shared the bug with the team and we'll be back with an update shortly. Thanks for finding this bug! |
Beta Was this translation helpful? Give feedback.
-
Here with an update! Shadi did some awesome digging into a possible workaround for enforcing recalculation of tooltip position. We've also filed an issue with Reakit to try to address this. In the meantime, feel free to use Shadi's workaround which uses |
Beta Was this translation helpful? Give feedback.
-
Hi @nkrantz, thanks for your response. We're using it for the copy auth token feature on the Account Dashboard, so it's a highly visible for all customers. Can we prioritize this fix? |
Beta Was this translation helpful? Give feedback.
-
Thank you @SiTaggart ! I'll go with the recommended workaround. |
Beta Was this translation helpful? Give feedback.
-
Update: Ariakit (formerly Reakit) is now using Floating UI for their tooltip in v2 which has a |
Beta Was this translation helpful? Give feedback.
Here with an update! Shadi did some awesome digging into a possible workaround for enforcing recalculation of tooltip position. We've also filed an issue with Reakit to try to address this. In the meantime, feel free to use Shadi's workaround which uses
useEffect
to watch for when the tooltip text changes, then uses the tooltip.hide()
and.show()
methods to recalculate the placement. Please let us know if you continue to have trouble with Tooltip and feel free to follow along on the Reakit issue.