We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<v-col cols="12" v-for="(signature, index) in formData.signatures" :key="index" > <VPerfectSignature width="100%" height="300px" :stroke-options="strokeOptions" :ref="`signatures${index}`" /> <v-btn @click="$refs[`signatures${index}`].clear()">Clear</v-btn> </v-col>
ERROR:
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in v-on handler: "TypeError: _vm.$refs[("signatures" + index)].clear is not a function"
vue.runtime.esm.js?2b0e:1897 TypeError: _vm.$refs[("signatures" + index)].clear is not a function
The text was updated successfully, but these errors were encountered:
https://v2.vuejs.org/v2/api/#ref
It wasn't able to find the appropriate element. To fix this, update your button click like this
<v-btn @click="clearSignature(`signatures${index}`)">
clearSignature(index: string) { if (this.$refs[index]) { this.$refs[index].clear() } }
Sorry, something went wrong.
No branches or pull requests
ERROR:
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in v-on handler: "TypeError: _vm.$refs[("signatures" + index)].clear is not a function"
vue.runtime.esm.js?2b0e:1897 TypeError: _vm.$refs[("signatures" + index)].clear is not a function
The text was updated successfully, but these errors were encountered: