Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to prevent validation if form is not dirty? #289

Open
ivanafanasyeu opened this issue Apr 23, 2024 · 2 comments
Open

How to prevent validation if form is not dirty? #289

ivanafanasyeu opened this issue Apr 23, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ivanafanasyeu
Copy link

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 ivanafanasyeu added the enhancement New feature or request label Apr 23, 2024
@itsmingjie
Copy link

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

@ivanafanasyeu
Copy link
Author

Related to
#255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants