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

Flash of tooltip content on DOM when using SSR + JSX content #12

Closed
atomiks opened this issue Oct 17, 2018 · 0 comments
Closed

Flash of tooltip content on DOM when using SSR + JSX content #12

atomiks opened this issue Oct 17, 2018 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@atomiks
Copy link
Owner

atomiks commented Oct 17, 2018

The tooltip content exists on the DOM when using SSR + JSX content because it exists in the render tree. It's not seen when using regular JS rendering because Tippy appends the node to the tooltip before the first animation frame.

Anyone have any ideas to prevent this? It can be hackishly done by using an inline style display: none on the content and then removing it onShow.

Can using portals prevent this?

@atomiks atomiks added bug Something isn't working help wanted Extra attention is needed labels Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant