mirror of
https://github.com/tenrok/maska.git
synced 2026-05-15 11:59:38 +03:00
+2
-1
@@ -75,7 +75,8 @@ export class MaskInput {
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user