Skip to content

Commit 9e732f7

Browse files
committed
fix #354
1 parent c120844 commit 9e732f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Tag.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export const Tag = memo(
149149
</button>
150150
)}
151151
{linkProps === undefined && nativeButtonProps === undefined && (
152-
<span
152+
<p
153153
{...nativeSpanProps}
154154
id={id_props ?? nativeSpanProps?.id ?? id}
155155
className={cx(nativeSpanProps?.className, className)}
@@ -158,11 +158,11 @@ export const Tag = memo(
158158
...style
159159
}}
160160
title={title ?? nativeSpanProps?.title}
161-
ref={ref as React.ForwardedRef<HTMLSpanElement>}
161+
ref={ref as React.ForwardedRef<HTMLParagraphElement>}
162162
{...rest}
163163
>
164164
{children}
165-
</span>
165+
</p>
166166
)}
167167
</>
168168
);

0 commit comments

Comments
 (0)