2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-20 20:00:34 +03:00

style: code formating

This commit is contained in:
Alexander Shabunevich
2024-03-30 15:07:31 +03:00
parent cd1e9f3564
commit 816c49c466
+2 -3
View File
@@ -115,11 +115,10 @@ export class MaskInput {
const input = e.target as HTMLInputElement const input = e.target as HTMLInputElement
if (e.inputType.startsWith('delete') || (s != null && s < value.length)) { if (e.inputType.startsWith('delete') || (s != null && s < value.length)) {
// see https://github.com/beholdr/maska/issues/118
try { try {
input.setSelectionRange(s, s) input.setSelectionRange(s, s)
} catch { } catch {}
// see https://github.com/beholdr/maska/issues/118
}
} }
} }