this.$refs.myForm.validate is not a function #14009
Answered
by
yusufkandemir
JeanTalgornThomas
asked this question in
General - Components / Directives / etc
-
Hello, I have this error : this.$refs.myForm.validate is not a function My Code :
|
Beta Was this translation helpful? Give feedback.
Answered by
yusufkandemir
Jul 21, 2022
Replies: 1 comment 1 reply
-
The Form element( Also, if you use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yusufkandemir
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Form element(
<form>
) doesn't have such a method, maybe you meant to use QForm component(<q-form>
) instead?Also, if you use
<q-form>
, you wouldn't have to callvalidate
on thesubmit
event, because it will already be done automatically.