Skip to content

Commit

Permalink
fix #354
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Jan 7, 2025
1 parent c120844 commit 9e732f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const Tag = memo(
</button>
)}
{linkProps === undefined && nativeButtonProps === undefined && (
<span
<p
{...nativeSpanProps}
id={id_props ?? nativeSpanProps?.id ?? id}
className={cx(nativeSpanProps?.className, className)}
Expand All @@ -158,11 +158,11 @@ export const Tag = memo(
...style
}}
title={title ?? nativeSpanProps?.title}
ref={ref as React.ForwardedRef<HTMLSpanElement>}
ref={ref as React.ForwardedRef<HTMLParagraphElement>}
{...rest}
>
{children}
</span>
</p>
)}
</>
);
Expand Down

0 comments on commit 9e732f7

Please sign in to comment.