Skip to content

Commit 9e8db61

Browse files
authored
fix: Allow for leading/trailing spaces when searching settings (#5193)
1 parent 62e06f4 commit 9e8db61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/dialog/content/SettingDialogContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const sortedGroups = (category: SettingTreeNode): ISettingGroup[] => {
118118
}
119119
120120
const handleSearch = (query: string) => {
121-
handleSearchBase(query)
121+
handleSearchBase(query.trim())
122122
activeCategory.value = query ? null : defaultCategory.value
123123
}
124124

0 commit comments

Comments
 (0)