From 6cbe2e288bdbfcd55139754d53dde4abec0c0cc0 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Thu, 9 Sep 2021 09:23:45 -0400 Subject: [PATCH] fix home button in search --- docs/assets/plugins/search/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assets/plugins/search/search.js b/docs/assets/plugins/search/search.js index c8d68edb..a0a8d992 100644 --- a/docs/assets/plugins/search/search.js +++ b/docs/assets/plugins/search/search.js @@ -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];