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'm seeing some unexpected behavior when I trigger validation on a button press:
onSave=async(event: React.MouseEvent<HTMLButtonElement>)=>{event.preventDefault();// I need to add this call, otherwise all the validation messages from// the previous submission attempt stay, even though the offending// input fields are fixed.this.form.current.reset();awaitthis.form.current.validateForm();if(!this.form.current.isValid()){console.log('Form invalid');return;}// Continue processing...}
The examples don't have this reset() call, so I'm wondering what could cause this type of behavior?
I can't think of anything "special" I did in my form that would cause this.
I'm using version 0.15.0.
The text was updated successfully, but these errors were encountered:
I'm seeing some unexpected behavior when I trigger validation on a button press:
The examples don't have this
reset()
call, so I'm wondering what could cause this type of behavior?I can't think of anything "special" I did in my form that would cause this.
I'm using version 0.15.0.
The text was updated successfully, but these errors were encountered: