Skip to content

Commit

Permalink
fix: hide gutter tooltip event missing from editor signal (#5701)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlujjawal authored Dec 20, 2024
1 parent 9df7987 commit 66a6736
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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,6 +271,9 @@ class GutterTooltip extends Tooltip {
}

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

0 comments on commit 66a6736

Please sign in to comment.