mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-06 08:50:50 +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 => {
|
onKeyDown={e => {
|
||||||
if (e.key === 'Enter') {
|
if (e.key === 'Enter') {
|
||||||
e.stopPropagation();
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
updateTagName(e.currentTarget.value);
|
updateTagName(e.currentTarget.value);
|
||||||
}
|
}
|
||||||
|
e.stopPropagation();
|
||||||
}}
|
}}
|
||||||
placeholder={t['Untitled']()}
|
placeholder={t['Untitled']()}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user