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

Merge pull request #177 from hiddenLadder/patch-1

Return null if input type equals file
This commit is contained in:
Alexander Shabunevich
2023-08-01 18:36:07 +03:00
committed by GitHub
+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) return
if (input == null || input?.type === 'file') return
checkValue(input)