elm-antd
elm-antd copied to clipboard
Re-run JS DOM event handlers on DOM change
problem: Right now, the code inside elm-antd-extras
only runs once. However, we need it to run basically after each time the dom is changed by the Elm runtime. Otherwise we don't bind event handlers to current components on the screen after a new render on the Dom.
Desired Outcome
- Refactor
elm-antd-extras
to run on a DOM change.
Research:
https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver