mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
fix: update disabled status after rendering (#7172)
* fix: update disabled status after rendering * fix: add test for json disabled
This commit is contained in:
committed by
GitHub
parent
817ffab754
commit
cb8ed73c48
@@ -1578,6 +1578,11 @@ export class BlockSvg
|
||||
this.rendered = true;
|
||||
dom.startTextWidthCache();
|
||||
|
||||
if (!this.isEnabled()) {
|
||||
// Apply disabled styles if needed.
|
||||
this.updateDisabled();
|
||||
}
|
||||
|
||||
if (this.isCollapsed()) {
|
||||
this.updateCollapsed_();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user