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