-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cant access field methods or props from ref #3443
Comments
It's added in 9f96ef0 and should tagged in the next the added methods are:
|
could meta be also exposed? |
I don't think exposing state via |
is there a performance cost to exposing it? at the moment, im using the v-slot and passing meta as a function argument. I am not yet ready to go the composition API route. |
Because it would encourage using Another workaround you can use is to copy the code for the |
@logaretm Is there a way to access valid states outside of template / component containing Form? Submit is triggered programmatically, not via a submit button inside the form, I need to pass the meta.valid to the parent dialog component i don't see a way to do that for now, i could call validate(), but this will trigger validation visually, and display errors to the users. for now i'm doing that : <Form v-slot="{ meta }">
<input v-bind="meta" type="hidden" ref="meta">
</Form> methods: {
isValid() {
return this.$refs.meta.getAttribute('valid')
}
} that's not clean at all but i have no choice |
@logaretm What do you think about implementing the composable in such a way as to play friendly with the
|
I cant access field methods or meta from ref
I would like to be able to call resetField from a method.
The text was updated successfully, but these errors were encountered: