Skip to content

Commit

Permalink
fix home button in search
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Sep 9, 2021
1 parent 1f95c6c commit 6cbe2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/assets/plugins/search/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

1 comment on commit 6cbe2e2

@vercel
Copy link

@vercel vercel bot commented on 6cbe2e2 Sep 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.