From 395a2b3fcc38f8ac5fa32c5198a750a6292cad59 Mon Sep 17 00:00:00 2001 From: Monica Kozbial Date: Mon, 21 Sep 2020 14:33:16 -0700 Subject: [PATCH] Don't update disabled on children of collapsed blocks. (#4302) --- core/block_svg.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/block_svg.js b/core/block_svg.js index 6daac7ae0..bf13267f4 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -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();