- Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
apiIssues related to APIIssues related to APIbugSomething isn't workingSomething isn't workingstatus: fixed in next releaseThe issue will be closed once next release is availableThe issue will be closed once next release is available
Description
Raycast version:
Description
Controlled form components don't act as fully controlled. They act as hybrid.
Steps To Reproduce
- Create a Form.TextField and add a
valueandonChangeproperties - Make sure the
onChangehandler doesn't update the value - Type into the text field
const [value, setValue] = useState("Hello, World!"); const noop = console.log; return <Form.TextField value={value} onChange={noop} /> The current behavior
You can see the text field update with your typed text
The expected behavior
Since the value property is not being updated as I type I don't expect the text field content to update. This behavior should be limited only to text fields using the "defaultValue" property.
Reactions are currently unavailable
Metadata
Metadata
Labels
apiIssues related to APIIssues related to APIbugSomething isn't workingSomething isn't workingstatus: fixed in next releaseThe issue will be closed once next release is availableThe issue will be closed once next release is available