Skip to content

Commit a4483ba

Browse files
authored
fix: some input fields couldn’t accept spaces (#709)
* fix: some input fields couldn’t accept spaces * docs: update changelog * update
1 parent bf46979 commit a4483ba

4 files changed

Lines changed: 4 additions & 9 deletions

File tree

docs/content.en/docs/release-notes/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Information about release notes of Coco Server is provided here.
2222
- fix: quick ai state synchronous #693
2323
- fix: toggle extension should register/unregister hotkey #691
2424
- fix: take coco server back on refresh #696
25+
- fix: some input fields couldn’t accept spaces #709
2526

2627
### ✈️ Improvements
2728

src/components/Assistant/AssistantList.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,7 @@ export function AssistantList({ assistantIDs = [] }: AssistantListProps) {
239239
placeholder={t("assistant.popover.search")}
240240
className="w-full h-8 px-2 bg-transparent border rounded-md dark:border-white/10"
241241
onChange={(event) => {
242-
const value = event.target.value.trim();
243-
244-
setKeyword(value);
242+
setKeyword(event.target.value);
245243
}}
246244
/>
247245
</VisibleKey>

src/components/Search/MCPPopover.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,7 @@ export default function MCPPopover({
253253
ref={searchInputRef}
254254
className="size-full px-2 rounded-lg border dark:border-white/10 bg-transparent"
255255
onChange={(e) => {
256-
const value = e.target.value.trim();
257-
258-
setKeyword(value);
256+
setKeyword(e.target.value);
259257
}}
260258
/>
261259
</div>

src/components/Search/SearchPopover.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,7 @@ export default function SearchPopover({
261261
ref={searchInputRef}
262262
className="size-full px-2 rounded-lg border dark:border-white/10 bg-transparent"
263263
onChange={(e) => {
264-
const value = e.target.value.trim();
265-
266-
setKeyword(value);
264+
setKeyword(e.target.value);
267265
}}
268266
/>
269267
</div>

0 commit comments

Comments
 (0)