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
Am I missing something? My expectation is that the errors object in onChange contains an error as soon as I start typing letters into a numbers field and the data object contains the invalid values for docNo.
The text was updated successfully, but these errors were encountered:
Sorry, it's me again.
I am trying to add a form with the following schema:
When I enter invalid values (as in: letters) for
docNo
the following happensonChange
is triggered witherrors == []
anddocNo == undefined
onChange
is not triggered againIf I enter something valid in other fields,
onChange
is triggered again witherrors == []
anddocNo == undefined
As soon as I delete the invalid values and enter something valid, e.g. '123', the
onChange
passes the correct value fordocNo
.Other validations work correctly.
Here's a minimal example from my repo:
Screenshot of the console when entering the first invalid value:
I am using:
Am I missing something? My expectation is that the
errors
object inonChange
contains an error as soon as I start typing letters into a numbers field and thedata
object contains the invalid values fordocNo
.The text was updated successfully, but these errors were encountered: