mirror of
https://github.com/tenrok/maska.git
synced 2026-05-15 11:59:38 +03:00
Return if input type equals file
Direcitve doesnt work on inputs with type set to 'file', it throws error when value changes
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user