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

This commit is contained in:
Shun Miyazawa 2025-01-25 20:30:26 +09:00 committed by GitHub
parent b2bbc28580
commit 1374be5a31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 => (