vee-validate icon indicating copy to clipboard operation
vee-validate copied to clipboard

Pass validation mode through `handleSubmit`

Open felixgabler opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

We have a multi-step form that calls the function returned by handleSubmit to go to the next step. This triggers all the validations for the other pages even though they are only shown freshly then.

Describe the solution you'd like

I would expect the ability to pass the validation mode (mode: 'validated-only') through the handleSubmit and it being forwarded to the validate call in handleSubmit.

Describe alternatives you've considered

felixgabler avatar Jul 14 '24 03:07 felixgabler

I just realized that validated-only also does not solve this. How can we make sure to only validate the fields that are currently in the schema?

felixgabler avatar Jul 14 '24 03:07 felixgabler

Can you set up a minimal reproduction for this? I believe the docs already have an example or two for multi-step forms where this isn't an issue.

logaretm avatar Jul 18 '24 22:07 logaretm