Skip to content

Commit

Permalink
fix: account for this.popup being potentially undefined in completi…
Browse files Browse the repository at this point in the history
…on mousewheel listener (#5537)


* fix: account for popup being potentially undefined is mousewheel listene
  • Loading branch information
akoreman authored Apr 23, 2024
1 parent 7869158 commit 6c3a9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ class Autocomplete {
}

mousewheelListener(e) {
if (!this.popup.isMouseOver)
if (this.popup && !this.popup.isMouseOver)
this.detach();
}

Expand Down

0 comments on commit 6c3a9a6

Please sign in to comment.