diff --git a/core/block_svg.js b/core/block_svg.js index 929f7d0bb..6daac7ae0 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -975,7 +975,9 @@ Blockly.BlockSvg.prototype.updateDisabled = function() { var children = this.getChildren(false); this.applyColour(); for (var i = 0, child; (child = children[i]); i++) { - child.updateDisabled(); + if (child.rendered) { + child.updateDisabled(); + } } };