Bugfix: options menu nav broken with new ListItem classes
The autofocus and nav functions were still using the old class name .list-item-indicator instead of .list-item which it actually is now.
This commit is contained in:
parent
c4cd385cfe
commit
d36fd1afe8
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
let currentIndex = Number(document.activeElement.dataset.index || 0)
|
||||
let next = currentIndex + move
|
||||
let items = document
|
||||
.querySelectorAll('.options .list-item-indicator')
|
||||
.querySelectorAll('.options .list-item')
|
||||
|
||||
// Loop around if at end
|
||||
if (next < 0) next = items.length - 1
|
||||
|
@ -42,7 +42,7 @@
|
|||
|
||||
// Focus the first option item
|
||||
let optionItems = document
|
||||
.querySelectorAll('.options .list-item-indicator');
|
||||
.querySelectorAll('.options .list-item');
|
||||
|
||||
// Set the index attributes (We assume this won't
|
||||
// change too often/until the next time the menu
|
||||
|
|
Loading…
Reference in a new issue