From fa4780d6cce4e49f647e0acbee13b4ebafaa0467 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sat, 13 Sep 2025 16:16:33 +0530 Subject: [PATCH] adjust --- src/client/app/router.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/app/router.ts b/src/client/app/router.ts index 0f1ca8e5..846010a2 100644 --- a/src/client/app/router.ts +++ b/src/client/app/router.ts @@ -293,8 +293,8 @@ export function scrollTo(hash: string, smooth = false, scrollPosition = 0) { target.addEventListener( 'blur', () => { - if (tabindex !== null) target.setAttribute('tabindex', tabindex) - else target.removeAttribute('tabindex') + if (tabindex == null) target.removeAttribute('tabindex') + else target.setAttribute('tabindex', tabindex) }, { once: true } )