fix: compose with focus and text hide

This commit is contained in:
Julien Calixte
2025-05-22 00:04:16 +02:00
parent 75541a0764
commit e9b183f1dd
2 changed files with 28 additions and 5 deletions

View File

@@ -50,7 +50,9 @@ if (focusElements.length > 0) {
focusable.classList.contains(element)
)
if (!elementToFocus) {
if (elementToFocus) {
focusable.classList.add('focus')
} else {
focusable.classList.add('no-focus')
}
})