From 816c49c4667a0496c1ea286d113cf40c1d301ffd Mon Sep 17 00:00:00 2001 From: Alexander Shabunevich Date: Sat, 30 Mar 2024 15:07:31 +0300 Subject: [PATCH] style: code formating --- src/mask-input.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mask-input.ts b/src/mask-input.ts index 663625b..5715974 100644 --- a/src/mask-input.ts +++ b/src/mask-input.ts @@ -115,11 +115,10 @@ export class MaskInput { const input = e.target as HTMLInputElement if (e.inputType.startsWith('delete') || (s != null && s < value.length)) { + // see https://github.com/beholdr/maska/issues/118 try { input.setSelectionRange(s, s) - } catch { - // see https://github.com/beholdr/maska/issues/118 - } + } catch {} } }