mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Don't update disabled on unrendered children
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user