mirror of
https://github.com/tenrok/maska.git
synced 2026-06-20 20:00:34 +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) {
|
if (update) {
|
||||||
this.updateValue(input)
|
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