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
I've been playing around with Tanstack Form to implement a sign up form with an email and password field where the email field uses an onBlur validator. I am trying to customize the behavior of onBlur but have not had any luck.
Currently the email field will validate on blur as expected. But when the field is focused and the value is changed, the error message is still displayed until the field is once again blurred. From a user perspective, they typed a valid email address but the error message will not go away until the field is blurred. onSubmit by default will remove the error message when the value of the field is changed. Is it possible to customize the behavior of onBlur to match the behavior of onSubmit and remove the error message when the field value is changed? Any help would be greatly appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been playing around with Tanstack Form to implement a sign up form with an email and password field where the email field uses an
onBlur
validator. I am trying to customize the behavior of onBlur but have not had any luck.Currently the email field will validate on blur as expected. But when the field is focused and the value is changed, the error message is still displayed until the field is once again blurred. From a user perspective, they typed a valid email address but the error message will not go away until the field is blurred.
onSubmit
by default will remove the error message when the value of the field is changed. Is it possible to customize the behavior ofonBlur
to match the behavior ofonSubmit
and remove the error message when the field value is changed? Any help would be greatly appreciated!Beta Was this translation helpful? Give feedback.
All reactions