Skip to content

Is there a way we can implement something like a beforeShow? #705

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

Closed
justinherrera opened this issue May 24, 2021 · 1 comment
Closed

Is there a way we can implement something like a beforeShow? #705

justinherrera opened this issue May 24, 2021 · 1 comment

Comments

@justinherrera
Copy link

I have to implement the tooltip in different areas and each has its own content, so I have to wrap the in different component and call it with props. Since it is called, it has to render multiple times. I am now facing an issue that the tooltip doesn't open one at a time. I am thinking for a beforeShow function and call the ReactTooltip.hide() inside of it, so I can get rid of the open tooltips before showing another one.

@danielbarion danielbarion added the V5 label Nov 9, 2022
@danielbarion
Copy link
Member

Hi, can you take a look at V5 PR, please? #820

Also, in V5, you guys can use this doc for this case, in the example we are changing the anchor, but if we change the anchor or the content, the tooltip will be updated, so, you can manage the content as you want.

https://react-tooltip.com/docs/examples/state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants