Skip to content

Commit cca00e9

Browse files
authored
fix: fix selection issue after renaming (#800)
1 parent e78fe4a commit cca00e9

2 files changed

Lines changed: 3 additions & 0 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
@@ -33,6 +33,7 @@ Information about release notes of Coco Server is provided here.
3333
- fix: incorrect status when installing extension #789
3434
- fix: increase read_timeout for HTTP streaming stability #798
3535
- fix: enter key problem #794
36+
- fix: fix selection issue after renaming #800
3637

3738
### ✈️ Improvements
3839

src/components/Common/HistoryList/HistoryListItem.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ const HistoryListItem: FC<HistoryListItemProps> = ({
107107
onKeyDown={(event) => {
108108
if (event.key !== "Enter") return;
109109

110+
event.stopPropagation();
111+
110112
const value = event.currentTarget.value;
111113

112114
onRename(item._id || "", value);

0 commit comments

Comments
 (0)