Skip to content

Commit

Permalink
fix: always attach model update event closes #3583
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Nov 28, 2021
1 parent 91c036b commit 6a53e80
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vee-validate/src/Field.ts
Expand Up @@ -185,9 +185,7 @@ const FieldImpl = defineComponent({
onChange: baseOnChange,
};

if (validateOnModelUpdate) {
attrs['onUpdate:modelValue'] = [onChangeHandler] as any;
}
attrs['onUpdate:modelValue'] = e => onChangeHandler(e, validateOnModelUpdate);

if (hasCheckedAttr(ctx.attrs.type) && checked) {
attrs.checked = checked.value;
Expand Down

0 comments on commit 6a53e80

Please sign in to comment.