Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

pengx17e0a91f63d324
diff --git a/packages/frontend/core/src/components/affine/page-properties/tags-inline-editor.tsx b/packages/frontend/core/src/components/affine/page-properties/tags-inline-editor.tsx
index af9a7f8171..c6b9f0f6eb 100644
--- a/packages/frontend/core/src/components/affine/page-properties/tags-inline-editor.tsx
+++ b/packages/frontend/core/src/components/affine/page-properties/tags-inline-editor.tsx
@@ -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']()}
/>