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

data-tlite doesn't seem to work #18

Open
maddenf opened this issue Mar 16, 2018 · 1 comment
Open

data-tlite doesn't seem to work #18

maddenf opened this issue Mar 16, 2018 · 1 comment

Comments

@maddenf
Copy link

maddenf commented Mar 16, 2018

Tested in Chrome v. 65.0.3325.162

This may be a timing issue.

The data-tlite attribute doesn't seem to work, as it's somehow overridden as the element seems to be modified before createTooltip() is called. And at the point at which it's called, the attribute is now empty, even though I set it to a value of 'sw'.

@chrisdavies
Copy link
Owner

It does sound like a timing issue. Does this work for you: https://chrisdavies.github.io/tlite/

It seems to work for me. I don't like modifying elements the way this library does (removing the data-tlite attribute, in this case). I'm doing this to prevent re-initialization of tlite on an element, but there are arguably better ways.

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

2 participants