-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
feat(VForm): add reactive errorMessages #15140
Conversation
c1b222e
to
e5df5ad
Compare
@KaelWD Sorry, maybe run a PR workflow, thanks! |
Please don't reformat files like that |
Is this supposed to be like v2's lazyValidation, which seems to not be implemented yet? |
ok, this need change? |
I read the lazyValidation functionality, my changes are not very similar to this, I described in the motivation for what I needed it. |
Do we not want |
When I was developing, I ran into a problem that I only receive error messages at the time of form validation, I decided that it would be worthwhile to leave the old behavior and add some prop for it and create a situation where errorMessages appeared after the form elements were validated. |
bd54e69
to
6c34ccb
Compare
Description
This PR adds a reactivity for errors. This change helps to make error messages more flexible.
Motivation and Context
This will help solve the problem if the developer needs to render errors or use them at the time of the actual occurrence, and not at the time of full form validation.
How Has This Been Tested?
add e2e test
Markup:
Types of changes
Checklist:
master
for bug fixes and documentation updates,dev
for new features and backwards compatible changes andnext
for non-backwards compatible changes).