Change the event dispatching of shadowType so that it sends input
for each keystroke and change upon completion. Quoting MDN:
The input event is fired every time the value of the element changes.
This is unlike the change event, which only fires when the value is
committed, such as by pressing the enter key, selecting a value from a
list of options, and the like.
Change the event dispatching of
shadowType
so that it sendsinput
for each keystroke andchange
upon completion. Quoting MDN:https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
Fixes an issue where a shadow DOM input element rendered by Preact was not updating its state.