Skip to content

An error occurs when insert in the head tag #87

@domxdom

Description

@domxdom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions