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

Sometimes popups don't appear #27

Closed
NilsEnevoldsen opened this issue Apr 23, 2018 · 1 comment
Closed

Sometimes popups don't appear #27

NilsEnevoldsen opened this issue Apr 23, 2018 · 1 comment

Comments

@NilsEnevoldsen
Copy link
Owner

I don't have a replicable test case, but sometimes popups don't appear. Nothing amiss appears in the console. When I reload the page, or ?debug=true, they start working. If this happens to anybody else, that'd be good to know.

Maybe I should put some status messages in the console to diagnose this.

@NilsEnevoldsen
Copy link
Owner Author

I think sometimes the javascript is getting loaded before the link elements exist. When the popups don't work, I notice that the appended js--card-popup div comes very high up in the body, above the global wrapper. Then if I rerun the code that creates the Tippy object in the page console, the links start working again. So I think I need to delay this script until the global wrapper loads.

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

1 participant