Don't update disabled on children of collapsed blocks. (#4302)

This commit is contained in:
Monica Kozbial
2020-09-21 14:33:16 -07:00
committed by GitHub
parent 001604b7c5
commit 395a2b3fcc

View File

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