Memex breaks Elm UIs with text area

This is the same problem described here, including a minimal case: https://www.reddit.com/r/elm/comments/5p4hqu/grammarly_chrome_extension_textarea_in_elm_app/

Iā€™ve observed this in both Firefox and Brave.

Not impossible that the same problem would occur with other shadow DOM-based frameworks as well.