Closed heygambo closed 7 years ago
2.0.3, 3.0.0-alpha.1
There is a callback being called when I destroy a the Vue component. That leads the validator's unregister function to be called.
It always leads to an error that I cannot make any sense of so far.
It iterates two times. The first time is correct, but this._validityWatchers changes in the second run so that the watcher cannot be found.
this._validityWatchers
That's the template:
<template> <validation name="validation"> <form novalidate @submit.prevent="submit"> <validity field="complaint" group="dispute" :validators="{ required: true, minlength: 4 }"> <input @input="handleValidate" id="complaint" type="text"> </validity> <validity field="body" group="dispute" :validators="{ required: true, minlength: 4 }"> <textarea @input="handleValidate" id="body"></textarea> </validity> </form> </validation> </template>
Thank you for your feedback! I'll try to fix next release.
I have meet this problem too , ……
vue & vue-validator version
2.0.3, 3.0.0-alpha.1
Problem
There is a callback being called when I destroy a the Vue component. That leads the validator's unregister function to be called.
It always leads to an error that I cannot make any sense of so far.
It iterates two times. The first time is correct, but
this._validityWatchers
changes in the second run so that the watcher cannot be found.Code
That's the template:
Screenshots