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

Support conditionally rendered tooltip content #69

Closed
hmnd opened this issue Mar 2, 2025 · 2 comments · Fixed by #83
Closed

Support conditionally rendered tooltip content #69

hmnd opened this issue Mar 2, 2025 · 2 comments · Fixed by #83
Labels
bug Something isn't working

Comments

@hmnd
Copy link
Contributor

hmnd commented Mar 2, 2025

For Tooltip content that needs to be loaded async, I prefer wrapping the content in {#if open} and enabling forceVisible. The way the next-gen Tooltip works makes this no longer possible, as it now depends on an HTML element being bound to tooltip.content before the content can be shown.

@hmnd hmnd changed the title Support dynamically hidden tooltip content Support conditionally rendered tooltip content Mar 2, 2025
@hmnd
Copy link
Contributor Author

hmnd commented Mar 2, 2025

This is also a big problem on pages with a large number of tooltips. The content positions remain continuously updated by floating ui while not displayed, resulting in low performance and lag.

@TGlide
Copy link
Member

TGlide commented Mar 3, 2025

This is also a big problem on pages with a large number of tooltips. The content positions remain continuously updated by floating ui while not displayed, resulting in low performance and lag.

Please open a separate issue, with reproduction

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

Successfully merging a pull request may close this issue.

2 participants