nextui
nextui copied to clipboard
fix: Input should not change value itself when value props is set (fix #737
Closes #737
📝 Description
The controlled Input value should not be changed by Input when value prop is set.
⛳️ Current behavior (updates)
When a non-undefined value
prop is passed to Input
, the changeHandler
and clearHandler
internal code will directly call setSelfValue
to change value
.
🚀 New behavior
When a non-undefined value
prop is passed to Input
, the changeHandler
and clearHandler
internal code will not call setSelfValue
to change value
.
💣 Is this a breaking change (Yes/No):
No
📝 Additional Information
@sun0day is attempting to deploy a commit to the NextUI Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
nextui-storybook | ✅ Ready (Inspect) | Visit Preview | Nov 5, 2022 at 8:02PM (UTC) |
Can we please merge this? @jrgarciadev