Calling form.reset
does not clear Combobox value
#940
Labels
Status: Unreleased
Issue addressed but not yet released
form.reset
does not clear Combobox value
#940
🐛 Bug report
Current Behavior
Calling
form.reset()
does not clear the value from the input in a Combobox. I've created a codesandbox to show it.https://codesandbox.io/s/unruffled-bell-s7r3t8?file=/src/App.js
When I enter a value in the combobox and press "submit" the value remains, although the
onSubmit
event handler calledevent.currentTarget.reset()
.Entering a value in a regular input and submitting the form behaves as expected.
Screen.Recording.2022-07-02.at.22.38.17.mov
This is the full reproduction code:
Expected behavior
The input is cleared when calling
form.reset
.Reproducible example
https://codesandbox.io/s/unruffled-bell-s7r3t8?file=/src/App.js
Suggested solution(s)
The input should probably listen to the
onreset
event and act accordingly.Your environment
The text was updated successfully, but these errors were encountered: