Merge pull request #4301 from rachel-fenichel/unrendered_disabled

Don't update disabled on unrendered children
This commit is contained in:
Rachel Fenichel
2020-09-21 11:01:09 -07:00
committed by GitHub

View File

@@ -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();
}
}
};