Skip to content

Commit 8504a27

Browse files
committed
Prettier change
1 parent 9a892b4 commit 8504a27

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/components/LanguageSelector.tsx

+7-3
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,14 @@ const LanguageSelector = () => {
152152

153153
useEffect(() => {
154154
if (isOpen && focusedIndex >= 0) {
155-
const elements = Array.from(document.querySelectorAll('.selector__item')) as HTMLElement[];
156-
const focusableElements = elements.filter(el => el.getAttribute('tabIndex') !== '-1');
155+
const elements = Array.from(
156+
document.querySelectorAll(".selector__item")
157+
) as HTMLElement[];
158+
const focusableElements = elements.filter(
159+
(el) => el.getAttribute("tabIndex") !== "-1"
160+
);
157161
const element = focusableElements[focusedIndex];
158-
element?.focus();
162+
element?.focus();
159163
}
160164
}, [isOpen, focusedIndex]);
161165

0 commit comments

Comments
 (0)