-
-
Notifications
You must be signed in to change notification settings - Fork 533
[BUG] Tooltip doesn't disappear after button link click on mobile devices #927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @syntaximus, thanks for the report! |
Hi @danielbarion, thanks for fast answer. |
There is definitely a bug with Changing the declaration for the icons seemed to fix it, so please try it and let me know: https://codesandbox.io/s/sharp-saha-qq8doy?file=/src/App.js There's probably some weird interaction between the icon getting rendered multiple times or something like that. Thanks for letting us know. |
On a side-note, your use-case would probably work fine with just one tooltip, instead of 3. I recommend watching #928 so you know if it works out to make it easier to use multiple anchors on the same tooltip. |
I applied your workaround to my application and it works, thanks! I investigated what is the diffrence in DOM between our code samples and it looks like in my code svg element re-renders and in your svg element stays the same and only path element re-renders. Nevertheless, your idea with declaration changing solved my problem, so this bug is not recurring problem for me. Fell free to close this issue if you think it is not worth of further investigating. |
Good to know. We might get back to this eventually. |
Describe the bug
I have navigation header with link buttons with react-tooltips. Buttons svg icon change dynamically to show which one is active. On mobile devices, when I tap the button, first tooltip shows, but after second tap on another button, first tooltip remains and doesn't dissaper.
Version of Package
v5.7.2
To Reproduce
index.js:
app.js:
styles.css:
package.json:
Expected behavior
Tooltip should dissapears after tap on another header link button.
Screenshots

Desktop
Smartphone:
The text was updated successfully, but these errors were encountered: