Relative Content

Tag Archive for javascripthtmlweb-component

Why are latent functions, such as callbacks registered with `addEventListener(“input, …”)` in my nested webcomponents not being executed?

Hopefully the snippet is self explanatory, most of the (albeit rather broken) magic happens in conntectedCallback(). Essentially, if you type into the first text field at the very top you will see a string being printed to the console (several times per keypress?). But typing into the second editable text field (which unlike the first one is nested inside another webcomponent) nothing gets printed.