Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: account for this.popup being potentially undefined in completion mousewheel listener #5537

Merged
merged 14 commits into from
Apr 23, 2024
Merged
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 @@
}

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

Check warning on line 434 in src/autocomplete.js

View check run for this annotation

Codecov / codecov/patch

src/autocomplete.js#L434

Added line #L434 was not covered by tests
this.detach();
}

Expand Down
Loading