chore: fix hiding bubbles on collapse (#7142)

* chore: fix hiding bubbles on collapse

* chore: format
This commit is contained in:
Beka Westberg
2023-06-13 13:19:40 -07:00
committed by GitHub
parent f9c865b1b3
commit 3e9d892934

View File

@@ -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 {