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
Is your feature request related to a problem? Please describe.
It is impossible to configure form's behavior dynamically. For example, when I want to validate on change only after submitting form, I need to make a key to reset the form's vDOM to make later configure's work. Furthermore, it is impossible to configure more than one form on the page. I think global API like this should be changed and instead be the part of useForm and Form APIs
Describe the solution you'd like
Instead of having a global state value for configurations, assign them to each form and let users change configure options on-the-fly
Describe alternatives you've considered
I've been trying to make it happen like so, but sure it looks ugly:
This issue is still left unclosed: #379, so I think it should happen. I'm willing to submit PR. Perhaps we could introduce different modes of validation like 'on-submit', 'after-submit', 'on-change', so people wouldn't need to write them themselves
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
It is impossible to configure form's behavior dynamically. For example, when I want to validate on change only after submitting form, I need to make a key to reset the form's vDOM to make later configure's work. Furthermore, it is impossible to configure more than one form on the page. I think global API like this should be changed and instead be the part of useForm and Form APIs
Describe the solution you'd like
Instead of having a global state value for configurations, assign them to each form and let users change configure options on-the-fly
Describe alternatives you've considered
I've been trying to make it happen like so, but sure it looks ugly:
Or:
This issue is still left unclosed: #379, so I think it should happen. I'm willing to submit PR. Perhaps we could introduce different modes of validation like 'on-submit', 'after-submit', 'on-change', so people wouldn't need to write them themselves
The text was updated successfully, but these errors were encountered: