Skip to content

Commit

Permalink
fix option selection upon menu reveal
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Jun 30, 2024
1 parent 469c30b commit 5563882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -888,8 +888,8 @@ class Autocomplete {

// Hover sets active item
newChildLink.addEventListener("mouseenter", (event) => {
// Don't trigger enter if using arrows
if (this._keyboardNavigation) {
// Don't trigger enter if using arrows or not currently using the mouse
if (this._keyboardNavigation || !this._isMouse) {
return;
}
this.removeSelection();
Expand Down

0 comments on commit 5563882

Please sign in to comment.