Skip to content

Commit

Permalink
feat: xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
pubuzhixing8 committed Nov 3, 2023
1 parent 5d6149a commit ca4d0ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/src/components/editable/editable.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ export class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewChe
this.ngZone.run(() => {
this.viewLoopManager.doCheck(this.editor.children, this.editor, [], this.context);
});

}
const readonlyChange = simpleChanges['readonly'];
if (readonlyChange) {
Expand Down Expand Up @@ -890,6 +889,9 @@ export class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewChe
this.isComposing = true;
}
this.detectContext();
this.ngZone.run(() => {
this.viewLoopManager.doCheck(this.editor.children, this.editor, [], this.context);
});
this.cdr.detectChanges();
}

Expand Down

0 comments on commit ca4d0ea

Please sign in to comment.