You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently upgrading an app from 2 to 3 😭 I have forms that uses vuetify inputs, but those inputs are encapsulated in a custom component. This custom component has some custom props (like "dirty", etc.) which I'm v-binding to the encapsulated vuetify input.
In vuetify 2, I could have something like this:
<v-form ref="my-form">
<cutom-component /> <!-- contains a vuetify input with v-binded props from custom-component -->
</v-form>
Then I could get the form in my code to check the custom props with something like this: this.$refs['my-form'].inputs.filter(i => console.log(i.$attrs.dirty))
Now in vuetify 3, I see that v-form no longer has an "inputs" property but now has an "items" one. "Items" only contains objects of predefined properties that represent the form's input and I have no access to the input itself, so no access to my custom properties.
Any ideas on how to access my custom properties like in vuetify 2?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm currently upgrading an app from 2 to 3 😭 I have forms that uses vuetify inputs, but those inputs are encapsulated in a custom component. This custom component has some custom props (like "dirty", etc.) which I'm v-binding to the encapsulated vuetify input.
In vuetify 2, I could have something like this:
Then I could get the form in my code to check the custom props with something like this:
this.$refs['my-form'].inputs.filter(i => console.log(i.$attrs.dirty))
Now in vuetify 3, I see that v-form no longer has an "inputs" property but now has an "items" one. "Items" only contains objects of predefined properties that represent the form's input and I have no access to the input itself, so no access to my custom properties.
Any ideas on how to access my custom properties like in vuetify 2?
Beta Was this translation helpful? Give feedback.
All reactions