2
0
mirror of https://github.com/tenrok/maska.git synced 2026-05-15 11:59:38 +03:00

Update directive.ts

This commit is contained in:
Ilya Machnev
2023-08-01 10:49:55 +08:00
committed by GitHub
parent c8998d6bf5
commit 7ad5792858
+1 -1
View File
@@ -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)