Skip to content

Commit e0a91f6

Browse files
committed
fix(core): tag menu should not accept keyboard shortcut when renaming tag (#7913)
fix #7890, fix PD-1603
1 parent 23c7324 commit e0a91f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/frontend/core/src/components/affine/page-properties/tags-inline-editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ export const EditTagMenu = ({
102102
}}
103103
onKeyDown={e => {
104104
if (e.key === 'Enter') {
105-
e.stopPropagation();
106105
e.preventDefault();
107106
updateTagName(e.currentTarget.value);
108107
}
108+
e.stopPropagation();
109109
}}
110110
placeholder={t['Untitled']()}
111111
/>

0 commit comments

Comments
 (0)