Skip to content

Commit

Permalink
fix(tag): add type="button" to interactive tag (#17241)
Browse files Browse the repository at this point in the history
  • Loading branch information
janhassel authored Aug 22, 2024
1 parent 5e4632c commit b28a26d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/src/components/Tag/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ const Tag = React.forwardRef(function Tag<T extends React.ElementType>(
disabled={disabled}
className={tagClasses}
id={tagId}
type={ComponentTag === 'button' ? 'button' : undefined}
{...other}>
{CustomIconElement && size !== 'sm' ? (
<div className={`${prefix}--tag__custom-icon`}>
Expand Down

0 comments on commit b28a26d

Please sign in to comment.