mirror of
https://github.com/tenrok/maska.git
synced 2026-06-20 20:00:34 +03:00
+2
-1
@@ -75,7 +75,8 @@ export class MaskInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private readonly onInput = (e: Event | InputEvent): void => {
|
private readonly onInput = (e: Event | InputEvent): void => {
|
||||||
if (e instanceof CustomEvent && e.type === 'input') {
|
// check both CustomEvent and isTrusted https://github.com/beholdr/maska/issues/227
|
||||||
|
if (e instanceof CustomEvent && e.type === 'input' && !e.isTrusted) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user