elm-antd icon indicating copy to clipboard operation
elm-antd copied to clipboard

Re-run JS DOM event handlers on DOM change

Open supermacro opened this issue 4 years ago • 0 comments

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

supermacro avatar Oct 21 '20 00:10 supermacro