-
Notifications
You must be signed in to change notification settings - Fork 428
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
sandbox for the Tooltip example on website is not working #314
Comments
change on sandbox de import ReactTooltip for import { Tooltip as ReactTooltip } from 'react-tooltip'; |
Even then, I think v5 react-tooltip works quite differently so would need a new example beyond the above change. |
The easy fix is to update the CodeSandbox to use The other alternative is to update the example to cover the new version (v5). If anyone decides to take that on, and changes to |
@gabrieljablonski There is one other issue with using react-tooltip v5. The tooltip does not display on top of the marker. Instead it displays below in the div, but using v4 or below it displays properly on top of the marker. |
That sounds like something that would happen if you're not doing If that's not the case, please open an issue over there with sample code, preferably a CodeSandbox, demonstrating the problem. |
@scho3034 you should probably keep this issue open, since the example on the website still needs to be fixed. |
@gabrieljablonski even adding the CSS import, the content is still displayed below the map. To get the desired effect the Here is a codesandbox with a working tooltip. |
Example sandbox of tooltip is not working.
https://www.react-simple-maps.io/examples/map-chart-with-tooltip/
The text was updated successfully, but these errors were encountered: