Open a modal from another problem
i am trying to open a modal from another modal. but getting a error :
Uncaught TypeError: this.$refs.basicModal.open is not a function .
my first modal is open perfectly.but when i trigger another modal from that modal
i got the above error.
can anyone plz help me ?
mesqueeb last edited by
did you try and
console.log(this.$refs)and see if it’s there right before trying to open it?
@mesqueeb plz see the attached image . i am trying to open serviceDetailModal modal which is present in $refs as you can see in console.
If you use same ref name multiple times (you probably got that by using a v-for), then the ref is an Array of refs. Which is your case here. Notice it says Array(2).
Call “open()” on the right index of this array.
@rstoenescu thank you very much :). now its working.