You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably considered a duplicate of #1899. We should be patching this in compat, in core the recommendation is to use an event that either produces a render or to use preventDefault() since that's the standard approach to implementing input prevention in the DOM:
Reproduction
With this example, React creates a controlled input while Preact creates a uncontrolled input.
In fact, I can't figure out how to make a controlled checkbox at all.
Not sure if this is a duplicate of #2625 or #1899
Steps to reproduce
https://codesandbox.io/s/preact-input-uncontrolled-qis0i
Click on the checkbox
Expected Behavior
Clicking on the checkbox shouldn't change its state (= what React does).
Actual Behavior
The checkbox can be toggled.
checked={true}
is essentially ignored.The text was updated successfully, but these errors were encountered: