My component structure is three levels deep and it's set up like this:
- container
- section-1 // section1Ref
- form-1 // form1Ref
The submit
method in the container component will call the submit
method in section-1
using this.$refs.section1Ref.submit()
.
Then, the submit
method within the section component will trigger the submit
method in the form-1
component by calling this.$refs.form1Ref.submit()
However, when I try to execute this.$refs.form1Ref.submit()
, I encounter this error:
this.$refs.form1Ref.submit is not a function
Even though I have confirmed that it is defined in the methods
object of the form-1
component.
This issue seems to arise specifically with a ref that is located three levels deep.