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