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

An error occurs when insert in the head tag #87

Open
domxdom opened this issue Jan 18, 2021 · 0 comments
Open

An error occurs when insert in the head tag #87

domxdom opened this issue Jan 18, 2021 · 0 comments

Comments

@domxdom
Copy link

domxdom commented Jan 18, 2021

Describe the bug
When using webpack to insert javascript into the head tag, I get the error focus-within-polyfill.js: 1 Uncaught TypeError: Cannot read property'getAttribute' of null

Expected behavior
DOMContentLoaded is required before executing addClass
https://github.com/matteobad/focus-within-polyfill/blob/master/src/focus-within.js#L121

@domxdom domxdom changed the title An error occurs when reading in the head tag An error occurs when insert in the head tag Jan 18, 2021
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