From b79649121ed09999250af1ea11273322364bb01a Mon Sep 17 00:00:00 2001 From: Jacques Heunis Date: Sun, 31 Jul 2022 08:10:25 +0100 Subject: [PATCH] Navigate to search result on selection from the autocomplete dropdown This avoids needing to click on "Go" every time after you select the suggestion that you want. The "Go" button still works as expected if you don't interact with the autocomplete at all. --- html/copy/docs.gl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/copy/docs.gl.js b/html/copy/docs.gl.js index e3ca40c2..91fd305d 100644 --- a/html/copy/docs.gl.js +++ b/html/copy/docs.gl.js @@ -291,7 +291,7 @@ $(function() { source: search_versions["all"], minLength: 3, select: function( event, ui ) { - search_fn(event.target.value); + search_fn(ui.item.value); }, });