-
-
Notifications
You must be signed in to change notification settings - Fork 533
[BUG] : When ' (single quote) is used any where in the text, the tooltip doesn't open #1175
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
Cannot reproduce this neither on v5.21.5 nor on v5.26.3 (latest version as of writing this). https://stackblitz.com/edit/vitejs-vite-jblnec?file=src%2FApp.tsx&terminal=dev What's most likely happening is that you're using the content as the id for the tooltip, which is not allowed on the HTML If that's the case, you should consider not using a tooltip for each one of your items. See the Dynamically generated anchor elements section on the docs for why you shouldn't do it. Please confirm if it's indeed an issue with the |
Sure @gabrieljablonski , what you have explained makes sense. Will check once |
Although you should still update your application to use less tooltip elements, as suggested above, there is indeed a bug regarding using This is due to how we build the CSS selector string: document.querySelectorAll(`[data-tooltip-id='${id}']`) We should escape single quotes from Will be fixed soon. |
Fixed on |
Bug description
When ' (single quote) is used any where in the text, the tooltip doesn't open.
Version of Package
v5.21.5
To Reproduce
Expected behavior
Screenshots
The text was updated successfully, but these errors were encountered: