Skip to content

Commit

Permalink
fix: avoid triggering extra model value events closes #4461
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Sep 29, 2023
1 parent 78c4668 commit d1b5b85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/clever-cows-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'vee-validate': patch
---

fix: avoid triggering extra model value events closes #4461
1 change: 0 additions & 1 deletion packages/vee-validate/src/Field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ const FieldImpl = /** #__PURE__ */ defineComponent({
// If there is a v-model applied on the component we need to emit the `update:modelValue` whenever the value binding changes
const onChangeHandler = function handleChangeWithModel(e: Event | unknown, shouldValidate = true) {
handleChange(e, shouldValidate);
ctx.emit('update:modelValue', value.value);
};

const sharedProps = computed(() => {
Expand Down

0 comments on commit d1b5b85

Please sign in to comment.