Skip to content

Commit 66a6736

Browse files
authored
fix: hide gutter tooltip event missing from editor signal (#5701)
1 parent 9df7987 commit 66a6736

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mouse/default_gutter_handler.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class GutterTooltip extends Tooltip {
222222
}
223223
}
224224

225-
if (annotation.displayText.length === 0) return this.hide();
225+
if (annotation.displayText.length === 0) return this.hideTooltip();
226226

227227
var annotationMessages = {error: [], security: [], warning: [], info: [], hint: []};
228228
var iconClassName = gutter.$useSvgGutterIcons ? "ace_icon_svg" : "ace_icon";
@@ -271,6 +271,9 @@ class GutterTooltip extends Tooltip {
271271
}
272272

273273
hideTooltip() {
274+
if(!this.isOpen){
275+
return;
276+
}
274277
this.$element.removeAttribute("aria-live");
275278
this.hide();
276279
this.editor._signal("hideGutterTooltip", this);

0 commit comments

Comments
 (0)