mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-19 02:51:47 +08:00
fix(editor): close embed edit modal on editor unmount (#9765)
Close [BS-2436](https://linear.app/affine-design/issue/BS-2436/should-close-embed-card-edit-modal-after-editor-unmount) ### What Changes: - fix(editor): close embed edit modal on editor unmount - test(editor): add test to embed edit modal when switching mode
This commit is contained in:
+1
@@ -279,6 +279,7 @@ export class EmbedCardEditModal extends SignalWatcher(
|
||||
override connectedCallback() {
|
||||
super.connectedCallback();
|
||||
|
||||
this.disposables.add(this.host.slots.unmounted.on(this._hide));
|
||||
this._updateInfo();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user