Skip to content

Commit 1b3c372

Browse files
authored
fix checkbox addon by initing outline path on expandable if
1 parent 633a348 commit 1b3c372

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

blocks_vertical/control.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ Blockly.Blocks['control_expandableIf'] = {
264264
if (prevText) prevText.appendField("if");
265265
else this.appendDummyInput(`TEXTSTART${this.branches_}`).appendField("if");
266266
const input = this.appendValueInput(`BOOL${this.branches_}`).setCheck("Boolean");
267+
input.init();
268+
input.initOutlinePath(this.svgGroup_);
269+
input.outlinePath.setAttribute('fill', this.getColourTertiary());
267270
if (shouldPopulate) this.fillInBlock(input.connection, "checkbox");
268271
this.appendDummyInput(`TEXTEND${this.branches_}`).appendField("then");
269272

0 commit comments

Comments
 (0)