mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 15:46:29 +08:00
fix(core): tag menu should not accept keyboard shortcut when renaming tag (#7913)
fix #7890, fix PD-1603
This commit is contained in:
@@ -102,10 +102,10 @@ export const EditTagMenu = ({
|
||||
}}
|
||||
onKeyDown={e => {
|
||||
if (e.key === 'Enter') {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
updateTagName(e.currentTarget.value);
|
||||
}
|
||||
e.stopPropagation();
|
||||
}}
|
||||
placeholder={t['Untitled']()}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user