Skip to content

Commit 7adcb80

Browse files
authored
fix rendering bug from addon
1 parent 7f97b78 commit 7adcb80

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

blocks_vertical/control.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,11 @@ Blockly.Blocks['control_expandableIf'] = {
275275
if (prevText) prevText.appendField("if");
276276
else this.appendDummyInput(`TEXTSTART${this.branches_}`).appendField("if");
277277
const input = this.appendValueInput(`BOOL${this.branches_}`).setCheck("Boolean");
278-
input.init();
279-
input.initOutlinePath(this.svgGroup_);
280-
input.outlinePath.setAttribute('fill', this.getColourTertiary());
278+
if (!this.isInsertionMarker_) {
279+
input.init();
280+
input.initOutlinePath(this.svgGroup_);
281+
input.outlinePath.setAttribute('fill', this.getColourTertiary());
282+
}
281283
if (shouldPopulate) this.fillInBlock(input.connection, "checkbox");
282284
this.appendDummyInput(`TEXTEND${this.branches_}`).appendField("then");
283285

0 commit comments

Comments
 (0)