preactjs / preact-compat

ATTENTION: The React compatibility layer for Preact has moved to the main preact repo.
http://npm.im/preact-compat
MIT License
950 stars 148 forks source link

[BUG] Uncontrolled input acts as controlled (issue on defaultValue) #539

Closed aralroca closed 4 years ago

aralroca commented 4 years ago

In order to reproduce the issue:

Expected:

What is happening:

Comparison React / Preact

issue

Code: https://stackblitz.com/edit/preact-bug-defaultvalue

I reproduced in Preact 10.3.3.

aralroca commented 4 years ago

Sorry, I reported in preact-compat instead of preact. Here is the good one: https://github.com/preactjs/preact/issues/2391