felte icon indicating copy to clipboard operation
felte copied to clipboard

How to prevent validation if form is not dirty?

Open ivanafanasyeu opened this issue 10 months ago • 2 comments

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.

ivanafanasyeu avatar Apr 23 '24 15:04 ivanafanasyeu

May be related to #129, but it's been almost 2 years since that discussion 🥲

itsmingjie avatar Apr 23 '24 16:04 itsmingjie

Related to https://github.com/pablo-abc/felte/issues/255

ivanafanasyeu avatar Apr 24 '24 12:04 ivanafanasyeu