Skip to content
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

[BUG] Strange tooltip behavior via using onClickFunction and tooltipTextFunction #132

Open
Garrethta opened this issue Aug 4, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Garrethta
Copy link

Problem:
Using both onClickFunction and tooltipTextFunction, you can see some strange behavior of tooltip: sometimes it persists after hover ends, sometimes it displays in the wrong place, sometimes it acts onClick nor hover, etc. Removing any1 of these props solves problem.

@Garrethta Garrethta added the bug Something isn't working label Aug 4, 2022
@yanivam
Copy link
Owner

yanivam commented Mar 28, 2023

Sorry everyone, I have been away doing my Masters and working full time. I am going to get back to this starting tomorrow. Thanks for your patience. -Yams

@lukasbach
Copy link

I found out that this is related to whether the return value of the tooltipTextFunction is reused between countries - if the value is used as tooltip text is used in more than one country, then this glitch happens. If every country displays different text, it works fine. For me and for now, my workaround is to include the country name in each tooltip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants