fix home button in search

pull/526/head
Cory LaViska 2021-09-09 09:23:45 -04:00
rodzic 1f95c6ca6e
commit 6cbe2e288b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -192,7 +192,7 @@
nextEl = items[Math.min(items.length - 1, index + 1)];
break;
case 'Home':
nextEl = items[items.length > 0 ? 1 : 0];
nextEl = items[0];
break;
case 'End':
nextEl = items[items.length - 1];