-
-
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
[Feature Request] Expose validated inputs present in forms #19365
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. |
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: