Skip to content

Tooltip Primitive doesn't position correctly when inner content changes. #2037

Answered by nkrantz
dholliday3 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nkrantz
Comment options

You must be logged in to vote
1 reply
@SiTaggart
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dholliday3
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2015 on November 15, 2021 15:50.