fix: update disabled status after rendering (#7172)

* fix: update disabled status after rendering

* fix: add test for json disabled
This commit is contained in:
Maribeth Bottorff
2023-06-15 15:31:40 -07:00
committed by GitHub
parent 817ffab754
commit cb8ed73c48
2 changed files with 21 additions and 0 deletions

View File

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