mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(editor): replace slot with rxjs subject (#10768)
This commit is contained in:
@@ -124,7 +124,7 @@ export class BlockCaptionEditor<
|
||||
this.caption = this.model.caption;
|
||||
|
||||
this.disposables.add(
|
||||
this.model.propsUpdated.on(({ key }) => {
|
||||
this.model.propsUpdated.subscribe(({ key }) => {
|
||||
if (key === 'caption') {
|
||||
this.caption = this.model.caption;
|
||||
if (!this._focus) {
|
||||
|
||||
Reference in New Issue
Block a user