felte
felte copied to clipboard
How to prevent validation if form is not dirty?
Is your feature request related to a problem? Please describe. No validation strategy, If I switch via tab through inputs, you set aria-invalid, input wasn't even touched, but felte is already validating it. aria-invalid is great for me, but I'd like to not set it when input were not dirty.
Describe the solution you'd like I use yup add validation option (validator(schema, level, etc, validationType: "onChange" | "isDirty" | "etc"))
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.
May be related to #129, but it's been almost 2 years since that discussion 🥲
Related to https://github.com/pablo-abc/felte/issues/255