-
-
Notifications
You must be signed in to change notification settings - Fork 533
[FEAT REQ] Hide tooltip using data-attributes on anchor element #1003
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
I can set empty string for data-tooltip-content={hide ? '' : name} but is there better way |
As of right now, this is probably the cleanest way to do it. I'll edit the issue and leave this open as a feature request. |
This issue is stale because it has not seen activity in 30 days. Remove the |
I would also like to have this implemented. The content hack doesn't really work if you render the content inside the Tooltip component. |
@neochief We're planning on having a look at this and the other issues soon. Until then, for your use case, would this work? https://stackblitz.com/edit/react-ts-k3miko?file=App.tsx If the children passed to the tooltip component is falsy, the tooltip also doesn't render. |
Imagine I have some state in my components and this state control whether or not display tooltip. In the previous version there was props data-tip-disable
The text was updated successfully, but these errors were encountered: