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:
+6
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user