-
-
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
[Feature Request] Expose validated inputs present in forms #19365
Closed
charlesg99 opened this issue
Mar 10, 2024
· 2 comments
· Fixed by Enterprise-CMCS/cmcs-eregulations#1307 · May be fixed by Shuunen/ging#200
Closed
[Feature Request] Expose validated inputs present in forms #19365
charlesg99 opened this issue
Mar 10, 2024
· 2 comments
· Fixed by Enterprise-CMCS/cmcs-eregulations#1307 · May be fixed by Shuunen/ging#200
Labels
Milestone
Comments
What is the use case for this? "Please do this" isn't a problem. |
As I said it was convenient in vuetify 2 since it was possible to access all the inputs no matter their nesting levels. In a parent component containing a form, where "form.validate" and such would be called, it made it possible to check custom properties set on each input nested in the form. This isn't a problem per se, that's why it is a feature request. |
KaelWD
added
T: enhancement
Functionality that enhances existing features
C: VForm
VForm
labels
Mar 13, 2024
KaelWD
added a commit
that referenced
this issue
Mar 13, 2024
VIXI0
pushed a commit
to VIXI0/vuetify
that referenced
this issue
Mar 13, 2024
VIXI0
pushed a commit
to VIXI0/vuetify
that referenced
this issue
Mar 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem to solve
Please expose the actual vinput associated with the validation in the v-form "items" array. Atm we only have acces to its id and validation state. In vuetify 2, a form would include all vinput vnodes in its "inputs" array, which was very convenient to track all vinputs present in the form, no matter their hierarchy. This feature was lost in vuetify 3.
Proposed solution
When the validation registers to its parent form(s), include a reference to the actual vinput vnode instead of its uid only. So each item in the vform's "items" array would have an additionnal property that would be the actual vinput vnode.
The text was updated successfully, but these errors were encountered: