Skip to content

Commit 6360b5c

Browse files
committed
fix(snippets): clear search field after click folder
1 parent c38af77 commit 6360b5c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/renderer/components/sidebar/TheSidebar.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,13 @@ const activeTab = ref<Tab>('library')
127127
const onClickFolder = async (id: string) => {
128128
folderStore.selectId(id)
129129
await snippetStore.setSnippetsByFolderIds(true)
130+
snippetStore.searchQuery = ''
130131
emitter.emit('folder:click', id)
131132
}
132133
133134
const onClickSystemFolder = (alias: SystemFolderAlias) => {
134135
snippetStore.setSnippetsByAlias(alias)
136+
snippetStore.searchQuery = ''
135137
}
136138
137139
const onClickTag = (id: string) => {

0 commit comments

Comments
 (0)