Accessing methods through defineExpose and v-if Error (formOne.value.handleSubmit is not a function) #9378
Unanswered
danielohling
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I have two different forms that appear depending on what the user selects as below:
Each component emits an event
@form
which sets the form:And both components use defineExpose to expose the handleSubmit() method.
The problem that occurs is that when I choose to use the formTwo's method handleSubmit() on the first attempt, the method is not exposed and I get an error according to: (formTwo.value.handleSubmit is not a function) But if I try again it goes through?
What am I doing wrong, is there another solution?
Beta Was this translation helpful? Give feedback.
All reactions