From 7ad5792858988c898100b0304150772bf2bf7220 Mon Sep 17 00:00:00 2001 From: Ilya Machnev <89526742+hiddenLadder@users.noreply.github.com> Date: Tue, 1 Aug 2023 10:49:55 +0800 Subject: [PATCH] Update directive.ts --- src/directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directive.ts b/src/directive.ts index 529908b..68b7c63 100644 --- a/src/directive.ts +++ b/src/directive.ts @@ -17,7 +17,7 @@ export const vMaska: MaskaDirective = (el, binding) => { const input = el instanceof HTMLInputElement ? el : el.querySelector('input') const opts = { ...(binding.arg as MaskInputOptions) } ?? {} - if (input == null || input.type === 'file') return + if (input == null || input?.type === 'file') return checkValue(input)