Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: Unexpected tag creation when pressing enter during tag conversion (#13041)

Shun Miyazawa1374be5a315d
diff --git a/web/app/components/base/tag-management/index.tsx b/web/app/components/base/tag-management/index.tsx
index 9a747910d24..1b859db9102 100644
--- a/web/app/components/base/tag-management/index.tsx
+++ b/web/app/components/base/tag-management/index.tsx
@@ -75,7 +75,7 @@ const TagManagementModal = ({ show, type }: TagManagementModalProps) => {
autoFocus
value={name}
onChange={e => setName(e.target.value)}
- onKeyDown={e => e.key === 'Enter' && createNewTag()}
+ onKeyDown={e => e.key === 'Enter' && !e.nativeEvent.isComposing && createNewTag()}
onBlur={createNewTag}
/>
{tagList.map(tag => (