We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f97b78 commit 7adcb80Copy full SHA for 7adcb80
1 file changed
blocks_vertical/control.js
@@ -275,9 +275,11 @@ Blockly.Blocks['control_expandableIf'] = {
275
if (prevText) prevText.appendField("if");
276
else this.appendDummyInput(`TEXTSTART${this.branches_}`).appendField("if");
277
const input = this.appendValueInput(`BOOL${this.branches_}`).setCheck("Boolean");
278
- input.init();
279
- input.initOutlinePath(this.svgGroup_);
280
- input.outlinePath.setAttribute('fill', this.getColourTertiary());
+ if (!this.isInsertionMarker_) {
+ input.init();
+ input.initOutlinePath(this.svgGroup_);
281
+ input.outlinePath.setAttribute('fill', this.getColourTertiary());
282
+ }
283
if (shouldPopulate) this.fillInBlock(input.connection, "checkbox");
284
this.appendDummyInput(`TEXTEND${this.branches_}`).appendField("then");
285
0 commit comments