Skip to content

Doesn't work outside of DOMContentLoaded #33

@stevenvachon

Description

@stevenvachon
import 'date-input-polyfill';
<script src="app.js"></script>
TypeError: null is not an object (evaluating 'document.body.appendChild')

Likely caused by this:
https://github.com/jcgertig/date-input-polyfill/blob/master/date-input-polyfill.js#L21

Will you accept a PR? I see that there're unmerged PRs.

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