Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8504a27

Browse files
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

Lines changed: 7 additions & 3 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /