From 3e9d8929342d02330ea927806da63f4e97e1d852 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Tue, 13 Jun 2023 13:19:40 -0700 Subject: [PATCH] chore: fix hiding bubbles on collapse (#7142) * chore: fix hiding bubbles on collapse * chore: format --- core/icons/icon.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/icons/icon.ts b/core/icons/icon.ts index e1f8066e3..ac485d647 100644 --- a/core/icons/icon.ts +++ b/core/icons/icon.ts @@ -7,6 +7,7 @@ import type {Block} from '../block.js'; import type {BlockSvg} from '../block_svg.js'; import * as browserEvents from '../browser_events.js'; +import {hasBubble} from '../interfaces/i_has_bubble.js'; import type {IIcon} from '../interfaces/i_icon.js'; import {Coordinate} from '../utils/coordinate.js'; import * as dom from '../utils/dom.js'; @@ -75,6 +76,9 @@ export abstract class Icon implements IIcon { } else { this.svgRoot.style.display = 'block'; } + if (hasBubble(this)) { + this.setBubbleVisible(false); + } } hideForInsertionMarker(): void {