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

feat: console warning on non-supported input type

This commit is contained in:
Alexander Shabunevich
2024-04-11 21:22:42 +03:00
parent 12ce5da3f5
commit 7273dc73a4
+6 -1
View File
@@ -53,10 +53,15 @@ export class MaskInput {
})
}
this.items.set(input, new Mask(parseInput(input, defaults)))
const mask = new Mask(parseInput(input, defaults))
this.items.set(input, mask)
if (update) {
this.updateValue(input)
if (input.selectionStart === null && mask.isEager()) {
console.warn('Maska: input of `%s` type is not supported', input.type)
}
}
}
}