Fix cubic review

Signed-off-by: Jonathan <contact@grafikart.fr>
This commit is contained in:
Jonathan
2025-11-19 14:22:00 +01:00
committed by Émile Ré
parent 789775f2fe
commit 7e8222d9b5
11 changed files with 27 additions and 24 deletions

View File

@@ -57,11 +57,7 @@ export function focusSiblingElement(direction = 1) {
).filter((el) => {
// Filter out elements that are not visible or have display: none
const style = window.getComputedStyle(el);
return (
style.display !== "none" &&
style.visibility !== "hidden" &&
el.offsetParent !== null
);
return style.display !== "none" && style.visibility !== "hidden";
});
const currentIndex = focusableElements.indexOf(current);