Fixed mounting ModalInFile

This commit is contained in:
Simon Cambier
2025-03-22 15:25:02 +01:00
parent 8c5efcfa46
commit ee55615951

View File

@@ -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)
}
}
}