Fixed #18
This commit is contained in:
@@ -28,16 +28,11 @@ let note: ResultNote | null = null
|
|||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
searchQuery = lastSearch
|
searchQuery = lastSearch
|
||||||
eventBus.disable("vault")
|
|
||||||
eventBus.on("infile", "enter", openSelection)
|
eventBus.on("infile", "enter", openSelection)
|
||||||
eventBus.on("infile", "arrow-up", () => moveIndex(-1))
|
eventBus.on("infile", "arrow-up", () => moveIndex(-1))
|
||||||
eventBus.on("infile", "arrow-down", () => moveIndex(1))
|
eventBus.on("infile", "arrow-down", () => moveIndex(1))
|
||||||
})
|
})
|
||||||
|
|
||||||
onDestroy(() => {
|
|
||||||
eventBus.enable("vaut")
|
|
||||||
})
|
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
if (searchQuery) {
|
if (searchQuery) {
|
||||||
note = getSuggestions(searchQuery, { singleFilePath })[0] ?? null
|
note = getSuggestions(searchQuery, { singleFilePath })[0] ?? null
|
||||||
|
|||||||
@@ -73,7 +73,11 @@ export class ModalInFile extends ModalOmnisearch {
|
|||||||
if (parent) {
|
if (parent) {
|
||||||
// Hide the parent modal
|
// Hide the parent modal
|
||||||
parent.containerEl.toggleVisibility(false)
|
parent.containerEl.toggleVisibility(false)
|
||||||
|
this.onOpen = () => {
|
||||||
|
eventBus.disable('vault')
|
||||||
|
}
|
||||||
this.onClose = () => {
|
this.onClose = () => {
|
||||||
|
eventBus.enable('vault')
|
||||||
parent.containerEl.toggleVisibility(true)
|
parent.containerEl.toggleVisibility(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user