Skip to content

Commit

Permalink
When using keyboard to select a result, emulate a click to retain the…
Browse files Browse the repository at this point in the history
… rest of the logic
  • Loading branch information
zanderle committed Nov 29, 2024
1 parent c389f31 commit 1867d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ export class SearchElement extends LitElement {
const selected = this.renderRoot.querySelector("a.hit.active");
// if an item is selected, then redirect to its link
if (selected !== null) {
window.location.href = selected.href;
selected.click();
}
}

Expand Down

0 comments on commit 1867d23

Please sign in to comment.