mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
lint
This commit is contained in:
parent
7a2c035299
commit
20f6b32119
@ -27,7 +27,7 @@ export const moveFocus = (
|
|||||||
|
|
||||||
// If no element is focused, focus the first matching element or the first focusable element
|
// If no element is focused, focus the first matching element or the first focusable element
|
||||||
if (currentIndex === -1) {
|
if (currentIndex === -1) {
|
||||||
const firstMatchingElement = focusableElements.find(selector);
|
const firstMatchingElement = focusableElements.find((element) => selector(element));
|
||||||
if (firstMatchingElement) {
|
if (firstMatchingElement) {
|
||||||
firstMatchingElement.focus();
|
firstMatchingElement.focus();
|
||||||
} else if (focusableElements[0]) {
|
} else if (focusableElements[0]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user