fix(core): tag menu should not accept keyboard shortcut when renaming tag (#7913)

fix #7890, fix PD-1603
This commit is contained in:
pengx17
2024-08-18 08:29:25 +00:00
parent 23c73243ab
commit e0a91f63d3
@@ -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']()}
/>