-
So I've got a TextInput.vue file, whcih looks like this:
And I've got a Parent.vue file which uses that child component like this:
In the parent component I want to get the value for the password to watch it when it changes and calculate a Password strength number. I tried to use 'useField' like this in the Parent.vue file, but it's not working: Can you please help me how I get a ref of my password custom input in the parent component? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use const { values } = useForm({
validationSchema: currentSchema
});
// Field value
values.password; |
Beta Was this translation helpful? Give feedback.
You can use
useForm
instead of<Form />
component and get the values for your form: