mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 23:35:54 +08:00
fix: Unexpected tag creation when pressing enter during tag conversion (#13041)
This commit is contained in:
parent
b2bbc28580
commit
1374be5a31
@ -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 => (
|
||||
|
Loading…
x
Reference in New Issue
Block a user