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
With these it still fires the form's onChangeAsync.
I'm just curious if there is any way to prevent field onBlur from triggering onChangeAsync when nothing was changed. If something was changed wouldn't onChangeAsync already been triggered?
Thanks for any clarifications on how this works. I tried searching everywhere in the docs and discussions and issues but couldn't find an answer.
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.
-
This might be intended behavior but I am trying to figure out how to prevent it.
In my text field component
However I am not defining any field on blur validators
My useAppForm alsodoes not define any onBlur.. validators.
The only validator I have is in my useAppForm. It's an onChangeAsync
I have found whenever I click into a field and click out without changing anything this onChangeAsync is fired.
If I comment out
field.handleBlur()
then it doesn't fire anymore.However I also tried:
With these it still fires the form's onChangeAsync.
I'm just curious if there is any way to prevent field onBlur from triggering onChangeAsync when nothing was changed. If something was changed wouldn't onChangeAsync already been triggered?
Thanks for any clarifications on how this works. I tried searching everywhere in the docs and discussions and issues but couldn't find an answer.
Beta Was this translation helpful? Give feedback.
All reactions