Skip to content

Commit

Permalink
Change onClick to onPress
Browse files Browse the repository at this point in the history
  • Loading branch information
nighto committed Dec 20, 2024
1 parent 245990d commit d221c48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const InputFieldWithTags = (props: InputFieldWithTagsProps) => {
onUpdateTags(tags.slice(0,-1));
}
if (e.key === 'Enter' && value !== '') {
e.preventDefault();
onUpdateTags([...tags, value.trim()]);
onUpdate('');
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/text/Tag/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const Tag = (props: TagProps) => {
>
{content}
{onRemove && (
<Button unstyled>
<Icon icon="cross" className={cl['bk-tag__icon']} onClick={onRemove}/>
<Button unstyled onPress={onRemove}>
<Icon icon="cross" className={cl['bk-tag__icon']}/>
</Button>
)}
</div>
Expand Down

0 comments on commit d221c48

Please sign in to comment.