diff --git a/packages/vee-validate/src/utils/events.ts b/packages/vee-validate/src/utils/events.ts index 1772c2047..62c6167da 100644 --- a/packages/vee-validate/src/utils/events.ts +++ b/packages/vee-validate/src/utils/events.ts @@ -1,4 +1,5 @@ import { isCallable } from '../../../shared'; +import { hasCheckedAttr } from './assertions'; export const isEvent = (evt: any): evt is Event => { if (!evt) { @@ -26,7 +27,7 @@ export function normalizeEventValue(value: unknown): any { const input = value.target as HTMLInputElement; // Vue sets the current bound value on `_value` prop // for checkboxes it it should fetch the value binding type as is (boolean instead of string) - if (input.type === 'checkbox' && '_value' in input) { + if (hasCheckedAttr(input.type) && '_value' in input) { return (input as any)._value; }