You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you change style or colour of block which is child of disabled block (getInheritedDisabled() of child block is true), colour of block is changed wrongly.
Steps to reproduce the behavior:
Create top block
Create child block
Disable top block (child block will be disabled because childBlock.getInheritedDisabled()==true)
Change style of child block
Child block looks like shadow block
Expected behavior:
Child block still looks like disabled block
Additional context:
Change code in block_svg.js:
Blockly.BlockSvg.prototype.updateColour = function() {
if (!this.isEnabled()) {
// Disabled blocks don't have colour.
return;
}
to:
Blockly.BlockSvg.prototype.updateColour = function() {
if (!this.isEnabled() || this.getInheritedDisabled()) {
// Disabled blocks don't have colour.
return;
}
The text was updated successfully, but these errors were encountered:
When you change style or colour of block which is child of disabled block (getInheritedDisabled() of child block is true), colour of block is changed wrongly.
Steps to reproduce the behavior:
Expected behavior:
Additional context:
Change code in block_svg.js:
to:
The text was updated successfully, but these errors were encountered: