mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-18 22:10:03 +00:00
fix: preserve active nav category when clearing search via nav click
This commit is contained in:
@@ -190,7 +190,11 @@ function sortedGroups(category: SettingTreeNode): ISettingGroup[] {
|
||||
|
||||
function handleSearch(query: string) {
|
||||
handleSearchBase(query.trim())
|
||||
activeCategoryKey.value = query ? null : (defaultCategory.value?.key ?? null)
|
||||
if (query) {
|
||||
activeCategoryKey.value = null
|
||||
} else if (!activeCategoryKey.value) {
|
||||
activeCategoryKey.value = defaultCategory.value?.key ?? null
|
||||
}
|
||||
}
|
||||
|
||||
function onNavItemClick(id: string) {
|
||||
|
||||
Reference in New Issue
Block a user