Skip to content

Commit

Permalink
fix: Unexpected tag creation when pressing enter during tag conversion (
Browse files Browse the repository at this point in the history
  • Loading branch information
miya authored Jan 25, 2025
1 parent b2bbc28 commit 1374be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app/components/base/tag-management/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 => (
Expand Down

0 comments on commit 1374be5

Please sign in to comment.