summaryrefslogtreecommitdiff
path: root/packages/client/src/scripts/focus.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/client/src/scripts/focus.ts')
-rw-r--r--packages/client/src/scripts/focus.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/client/src/scripts/focus.ts b/packages/client/src/scripts/focus.ts
index 0894877820..d6802fa322 100644
--- a/packages/client/src/scripts/focus.ts
+++ b/packages/client/src/scripts/focus.ts
@@ -4,7 +4,7 @@ export function focusPrev(el: Element | null, self = false, scroll = true) {
if (el) {
if (el.hasAttribute('tabindex')) {
(el as HTMLElement).focus({
- preventScroll: !scroll
+ preventScroll: !scroll,
});
} else {
focusPrev(el.previousElementSibling, true);
@@ -18,7 +18,7 @@ export function focusNext(el: Element | null, self = false, scroll = true) {
if (el) {
if (el.hasAttribute('tabindex')) {
(el as HTMLElement).focus({
- preventScroll: !scroll
+ preventScroll: !scroll,
});
} else {
focusPrev(el.nextElementSibling, true);