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
When a required field is not modified yet, it submits fine. When a required field is modified, it validates correctly prompting me to fill out the required field. If I then delete all values, it prompts me to fill out the required field even if all values has been cleared.
Expected Behavior
It should submit the form without errors when all values has been removed
Prerequisites
What theme are you using?
material-ui
Version
5.21.1
Current Behavior
When a required field is not modified yet, it submits fine. When a required field is modified, it validates correctly prompting me to fill out the required field. If I then delete all values, it prompts me to fill out the required field even if all values has been cleared.
Expected Behavior
It should submit the form without errors when all values has been removed
Steps To Reproduce
testProp1
(should error about missing requiredtestProp2
)testProp2
(should submit without errors)testProp1
andtestProp2
(should submit without errors but does not and show error about missing required testProp2)This seems to be because of the empty object that never gets cleaned up when all values are deleted.
Environment
Anything else?
Note that
Disable HTML 5 validation
option must be selected.The text was updated successfully, but these errors were encountered: