Fixed mounting ModalInFile
This commit is contained in:
@@ -198,7 +198,7 @@ export class OmnisearchInFileModal extends OmnisearchModal {
|
|||||||
) {
|
) {
|
||||||
super(plugin)
|
super(plugin)
|
||||||
|
|
||||||
const cmp = new ModalInFile({
|
const cmp = mount(ModalInFile, {
|
||||||
target: this.modalEl,
|
target: this.modalEl,
|
||||||
props: {
|
props: {
|
||||||
plugin,
|
plugin,
|
||||||
@@ -217,7 +217,7 @@ export class OmnisearchInFileModal extends OmnisearchModal {
|
|||||||
if (parent) {
|
if (parent) {
|
||||||
parent.containerEl.toggleVisibility(true)
|
parent.containerEl.toggleVisibility(true)
|
||||||
}
|
}
|
||||||
cmp.$destroy()
|
unmount(cmp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user