Skip to content

Commit

Permalink
Navigate to search result on selection from the autocomplete dropdown
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jacquesh committed Jul 31, 2022
1 parent 836ec3c commit b796491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/copy/docs.gl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
});

Expand Down

0 comments on commit b796491

Please sign in to comment.