mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 01:17:58 +00:00
refactor(search-ui): clear search state and prevent auto-search on toggling semantic search
This commit is contained in:
@@ -270,7 +270,12 @@ export function SearchFilterDialog({
|
||||
<Switch
|
||||
id="semantic-search-switch"
|
||||
checked={isSemantic}
|
||||
onCheckedChange={setIsSemantic}
|
||||
onCheckedChange={(checked) => {
|
||||
setIsSemantic(checked)
|
||||
setSearchInput('')
|
||||
setTriggerQuery('')
|
||||
setConditions([])
|
||||
}}
|
||||
disabled={!semanticSearchEnabled}
|
||||
/>
|
||||
<Label
|
||||
|
||||
Reference in New Issue
Block a user