Closed aralroca closed 4 years ago
In order to reproduce the issue:
defaultValue
<input>
onChange
onInput
Expected:
What is happening:
Comparison React / Preact
Code: https://stackblitz.com/edit/preact-bug-defaultvalue
I reproduced in Preact 10.3.3.
Sorry, I reported in preact-compat instead of preact. Here is the good one: https://github.com/preactjs/preact/issues/2391
preact-compat
preact
In order to reproduce the issue:
defaultValue
prop on a<input>
elementonChange
event (also it happens inonInput
event).Expected:
defaultValue
only takes the first value, then is updated.What is happening:
defaultValue
overwrites the updated value.Comparison React / Preact
Code: https://stackblitz.com/edit/preact-bug-defaultvalue
I reproduced in Preact 10.3.3.