mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(editor): clear remote selection when editor is deactive (#11450)
Closes: BS-3022
This commit is contained in:
@@ -323,6 +323,14 @@ export class AffineDocRemoteSelectionWidget extends WidgetComponent {
|
||||
this._updateSelections(selections);
|
||||
})
|
||||
);
|
||||
|
||||
this.disposables.add(
|
||||
this.std.event.active$.subscribe(value => {
|
||||
if (!value) {
|
||||
this.std.selection.clearRemote();
|
||||
}
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
override render() {
|
||||
|
||||
Reference in New Issue
Block a user