Skip to content

Fix DomNodeInserted Deprecation#22

Open
PelledeGreeuw wants to merge 2 commits intomonim67:masterfrom
PelledeGreeuw:fix-domnodeinserted-deprecation
Open

Fix DomNodeInserted Deprecation#22
PelledeGreeuw wants to merge 2 commits intomonim67:masterfrom
PelledeGreeuw:fix-domnodeinserted-deprecation

Conversation

@PelledeGreeuw
Copy link
Copy Markdown

Fix DomNodeInserted Deprecation

Purpose

The MutationEvent API has been deprecated (#21) and some browsers already dropped support completely MDN. This causes a warning in the developer console and prevents flatpickrs which are inserted through e.g. a modal (#16 ) from being initialized.

Approach

Removed the DOMNodeInserted event listener and replaced it with a MutationObserver

Issues solved in this PR

What has Changed

  • django-flatpickr.js

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

Successfully merging this pull request may close these issues.

1 participant