stewie1570 / leaf-validator

Declarative state progression & validation for React apps.
MIT License
4 stars 1 forks source link

Nestable form bug #143

Open stewie1570 opened 2 years ago

stewie1570 commented 2 years ago

Nestable form will swap the outer form onSubmit handler and will call the correct form onSubmit handler - HOWEVER, the onClick handler of the submit button is not swapped with the current form submit handler.

stewie1570 commented 2 years ago

Both the onSubmit and onClick handlers are called when the user hits enter while on an input form. However, the reals submit handler will often be the onClick of the submit button because then it can fire off the loading-states of that button onClick handler.