diff --git a/core/icons/comment_icon.ts b/core/icons/comment_icon.ts index 591fe9727..df54560c5 100644 --- a/core/icons/comment_icon.ts +++ b/core/icons/comment_icon.ts @@ -264,15 +264,18 @@ export class CommentIcon extends Icon implements IHasBubble, ISerializable { } async setBubbleVisible(visible: boolean): Promise { - if (visible && (this.textBubble || this.textInputBubble)) return; - if (!visible && !(this.textBubble || this.textInputBubble)) return; - + if (this.bubbleVisiblity === visible) return; this.bubbleVisiblity = visible; - if (!this.sourceBlock.rendered || this.sourceBlock.isInFlyout) return; - await renderManagement.finishQueuedRenders(); + if ( + !this.sourceBlock.rendered || + this.sourceBlock.isInFlyout || + this.sourceBlock.isInsertionMarker() + ) + return; + if (visible) { if (this.sourceBlock.isEditable()) { this.showEditableBubble();