mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
chore: fix hiding bubbles on collapse (#7142)
* chore: fix hiding bubbles on collapse * chore: format
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user