Skip to content

Commit

Permalink
Fix #2927 (#2944)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiuqingSong authored Feb 12, 2025
1 parent bbe7d52 commit ce1afbe
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,11 @@ class RibbonPluginImpl implements RibbonPlugin {
private updateFormat() {
if (this.editor && this.onFormatChanged) {
const newFormatState = getFormatState(this.editor);
const newFormatKeys = getObjectKeys(newFormatState);

if (
!this.formatState ||
newFormatKeys.length != getObjectKeys(this.formatState).length ||
getObjectKeys(newFormatState).some(
key => newFormatState[key] != this.formatState?.[key]
)
Expand Down

0 comments on commit ce1afbe

Please sign in to comment.