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

TypeError: document.body is null #5

Open
Spone opened this issue Jun 13, 2019 · 0 comments
Open

TypeError: document.body is null #5

Spone opened this issue Jun 13, 2019 · 0 comments

Comments

@Spone
Copy link
Contributor

Spone commented Jun 13, 2019

J'utilise Webpack pour inclure le script :

import Overlay from "@accede-web/overlay";

J'ai l'erreur suivante au chargement de la page : TypeError: document.body is null

Ce sont ces deux lignes qui posent problème :

overlay/dist/overlay.js

Lines 677 to 678 in 943a044

document.body.addEventListener('keydown', cancelListener);
document.body.addEventListener('focus', getActiveElement, true);

J'utilise Firefox 67.

Une idée ?

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