Don't update disabled on unrendered children

This commit is contained in:
Rachel Fenichel
2020-09-21 10:44:03 -07:00
parent ab5a51e2a4
commit f76560e883

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