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:
+2
-3
@@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user