TIL: Accessing Content in Custom HTML Elements
#til #javascript #webdev #customelements
I was working on a custom element today that replaces a textarea
with CodeMirror in the UI while still updating the textarea
in the background so that it can be submitted in a form. I ran across a wild footgun in custom elements.
StackOverflow eventually provided the solution. There's a solution on stack overflow, but Danny Engleman wrote up a more thorough explanation.