From ee55615951d47168f6fdb10e9cea0a4a559d5994 Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Sat, 22 Mar 2025 15:25:02 +0100 Subject: [PATCH] Fixed mounting ModalInFile --- src/components/modals.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/modals.ts b/src/components/modals.ts index dc6b1f0..f45908b 100644 --- a/src/components/modals.ts +++ b/src/components/modals.ts @@ -198,7 +198,7 @@ export class OmnisearchInFileModal extends OmnisearchModal { ) { super(plugin) - const cmp = new ModalInFile({ + const cmp = mount(ModalInFile, { target: this.modalEl, props: { plugin, @@ -217,7 +217,7 @@ export class OmnisearchInFileModal extends OmnisearchModal { if (parent) { parent.containerEl.toggleVisibility(true) } - cmp.$destroy() + unmount(cmp) } } }