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: console error when hovering over empty gutter cell with tooltipFollowsMouse set to false #5173

Merged
merged 3 commits into from
May 16, 2023

Conversation

akoreman
Copy link
Contributor

@akoreman akoreman commented May 16, 2023

When hovering over an empty gutter cell with tooltipFollowsMouse set to false, a console error is thrown because the querySelector is trying to find an non-existing element. This fixes that by checking whether there is an annotation in the row before trying to show the tooltip.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented May 16, 2023

Codecov Report

Patch coverage: 50.00% and no project coverage change.

Comparison is base (c6647f0) 86.95% compared to head (763c944) 86.96%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5173   +/-   ##
=======================================
  Coverage   86.95%   86.96%           
=======================================
  Files         562      562           
  Lines       44997    45018   +21     
  Branches     6921     6923    +2     
=======================================
+ Hits        39128    39148   +20     
- Misses       5869     5870    +1     
Flag Coverage Δ
unittests 86.96% <50.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/mouse/default_gutter_handler.js 71.72% <50.00%> (-0.31%) ⬇️

... and 6 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@akoreman akoreman changed the title fix: console error when hovering over empty gutter cell with tooltipFollowsMouse set to true fix: console error when hovering over empty gutter cell with tooltipFollowsMouse set to false May 16, 2023
@akoreman akoreman merged commit 5ff8d4c into ajaxorg:master May 16, 2023
2 of 3 checks passed
@akoreman akoreman deleted the gutter_fix branch May 16, 2023 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants