diff --git a/docs/content.en/docs/release-notes/_index.md b/docs/content.en/docs/release-notes/_index.md index 9542de37..c13f4580 100644 --- a/docs/content.en/docs/release-notes/_index.md +++ b/docs/content.en/docs/release-notes/_index.md @@ -22,6 +22,7 @@ Information about release notes of Coco Server is provided here. - fix: quick ai state synchronous #693 - fix: toggle extension should register/unregister hotkey #691 - fix: take coco server back on refresh #696 +- fix: some input fields couldn’t accept spaces #709 ### ✈️ Improvements diff --git a/src/components/Assistant/AssistantList.tsx b/src/components/Assistant/AssistantList.tsx index 50eca41b..20f85471 100644 --- a/src/components/Assistant/AssistantList.tsx +++ b/src/components/Assistant/AssistantList.tsx @@ -239,9 +239,7 @@ export function AssistantList({ assistantIDs = [] }: AssistantListProps) { placeholder={t("assistant.popover.search")} className="w-full h-8 px-2 bg-transparent border rounded-md dark:border-white/10" onChange={(event) => { - const value = event.target.value.trim(); - - setKeyword(value); + setKeyword(event.target.value); }} /> diff --git a/src/components/Search/MCPPopover.tsx b/src/components/Search/MCPPopover.tsx index faf2a219..89e8dc77 100644 --- a/src/components/Search/MCPPopover.tsx +++ b/src/components/Search/MCPPopover.tsx @@ -253,9 +253,7 @@ export default function MCPPopover({ ref={searchInputRef} className="size-full px-2 rounded-lg border dark:border-white/10 bg-transparent" onChange={(e) => { - const value = e.target.value.trim(); - - setKeyword(value); + setKeyword(e.target.value); }} /> diff --git a/src/components/Search/SearchPopover.tsx b/src/components/Search/SearchPopover.tsx index 4cb941f8..5e8b8480 100644 --- a/src/components/Search/SearchPopover.tsx +++ b/src/components/Search/SearchPopover.tsx @@ -261,9 +261,7 @@ export default function SearchPopover({ ref={searchInputRef} className="size-full px-2 rounded-lg border dark:border-white/10 bg-transparent" onChange={(e) => { - const value = e.target.value.trim(); - - setKeyword(value); + setKeyword(e.target.value); }} />