fix(editor): clear remote selection when editor is deactive (#11450)

Closes: BS-3022
This commit is contained in:
Saul-Mirone committed 2025-04-03 09:36:28 +00:00
1 parent 773db7860a
commit 01429f8f66
2 files changed
+15

No files matched your search

@@ -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() {