-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
any-one-all-ofRelated to fixing anyOf, oneOf or allOfRelated to fixing anyOf, oneOf or allOfawaiting responsebug
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
mui
Version
5.23.2
Current Behavior
I have this oneOf (playground link) with several fields, first two with default values and the last two without default values. If I select Option1 for example and change either "someDate" or "someValue", not both, and then change Option1 to Option2, the changed field resets as expected. If I insert formData for both "someDate" and "someValue", after changing the option in the dropdown to Option2, the fields don't reset.
Expected Behavior
To reset inserted formData for both fields when changing oneOf dropdown options, as those fields in my case do not have default values.
Steps To Reproduce
Environment
- OS: macOS Sequoia 15.2
- Node: 20.18.1
- npm: 10.8.2
Anything else?
No response
Metadata
Metadata
Assignees
Labels
any-one-all-ofRelated to fixing anyOf, oneOf or allOfRelated to fixing anyOf, oneOf or allOfawaiting responsebug