Skip to content

Commit

Permalink
fix: re-add value listeners after reset to provent dangling cancellat…
Browse files Browse the repository at this point in the history
…ion tokens after reset closes #1662, closes #1663, closes #1641
  • Loading branch information
logaretm committed Oct 22, 2018
1 parent 95a1bda commit 73f30c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/field.js
Expand Up @@ -290,6 +290,7 @@ export default class Field {
this.flags[flag] = defaults[flag];
});

this.addValueListeners();
this.addActionListeners();
this.updateClasses();
this.updateAriaAttrs();
Expand Down
1 change: 1 addition & 0 deletions src/core/validator.js
Expand Up @@ -222,6 +222,7 @@ export default class Validator {
return VeeValidate._vm.$nextTick();
}).then(() => {
this.fields.filter(matcher).forEach(field => {
field.waitFor(null);
field.reset(); // reset field flags.
this.errors.remove(field.name, field.scope);
});
Expand Down

0 comments on commit 73f30c2

Please sign in to comment.