Skip to content

Commit

Permalink
fix: hide gutter tooltip event missing from editor signal
Browse files Browse the repository at this point in the history
  • Loading branch information
nlujjawal committed Dec 20, 2024
1 parent e580ecf commit 94ff9a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mouse/default_gutter_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class GutterTooltip extends Tooltip {
}
}

if (annotation.displayText.length === 0) return this.hide();
if (annotation.displayText.length === 0) return this.hideTooltip();

var annotationMessages = {error: [], security: [], warning: [], info: [], hint: []};
var iconClassName = gutter.$useSvgGutterIcons ? "ace_icon_svg" : "ace_icon";
Expand Down Expand Up @@ -271,7 +271,7 @@ class GutterTooltip extends Tooltip {
}

hideTooltip() {
this.$element.removeAttribute("aria-live");
this.$element?.removeAttribute("aria-live");
this.hide();
this.editor._signal("hideGutterTooltip", this);
}
Expand Down

0 comments on commit 94ff9a7

Please sign in to comment.