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

Tooltip not showing: Cannot read property 'insertAdjacentHTML' of null #25

Closed
geovaneo opened this issue Feb 21, 2021 · 4 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@geovaneo
Copy link

Hi,

I followed getting started and documentation, everthing is working fine but tooltip. Whenever I try to see selected options, when I mouse over it:

VM9033:5 Uncaught TypeError: Cannot read property 'insertAdjacentHTML' of null
at eval (eval at module.exports (VM9004 addScript.js:1), :5:1123)
at HTMLDocument.l (eval at module.exports (VM9004 addScript.js:1), :5:2395)
eval @ VM9033:5
l @ VM9033:5

Any ideas?

@sa-si-dev
Copy link
Owner

@geovaneo does this error message coming in documents page also or only in your page?

@mcihak
Copy link

mcihak commented Feb 21, 2021

Encountered this issue as well.
The problem was that I placed the script into head of a page.
I guess the problem is that the script is trying to access a DOM element before it is rendered.
Try to move tooltip script to the end of the body.
In my case it resolved the issue.

@geovaneo
Copy link
Author

Hi guys! Moving to end of the body solved the issue.
Thanks!

@sa-si-dev sa-si-dev added the bug Something isn't working label Feb 22, 2021
@sa-si-dev sa-si-dev self-assigned this Feb 22, 2021
@sa-si-dev
Copy link
Owner

@geovaneo this issue got fixed in the tooltip plugin (v1.0.6)

Now we can import plugin files in the head tag.

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

No branches or pull requests

3 participants