Handle clearing of controlled fields #280
Labels
enhancement
Enhances existing functionality.
good first issue
Good for newcomers.
needs:clarification
needs:testing
scope:architecture
Changes affect architecture.
Milestone
Environment
What
Need to properly handle controlled fields clear.
Why
Although there is the
onClear
callback function exposed to clear the values of the controlled fields, after that it validated the fields as invalid. That is obvious, since clearing the controlled value invokesonChange
event, and that results into validation of the field. That is the correct chain of events, but the unexpected one for clearing scenario.How
Reset has a similar functionality, where proper validity status of the fields is achieved by explicit validation with the custom
predicate
function supplied. However, I am not sure if reset of controlled fields was properly tested.Roadmap
The text was updated successfully, but these errors were encountered: