Skip to content

Commit 6c3a9a6

Browse files
authored
fix: account for this.popup being potentially undefined in completion mousewheel listener (#5537)
* fix: account for popup being potentially undefined is mousewheel listene
1 parent 7869158 commit 6c3a9a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/autocomplete.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ class Autocomplete {
431431
}
432432

433433
mousewheelListener(e) {
434-
if (!this.popup.isMouseOver)
434+
if (this.popup && !this.popup.isMouseOver)
435435
this.detach();
436436
}
437437

0 commit comments

Comments
 (0)