Skip to content

Commit

Permalink
fix: enhance tag type
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoqi committed May 9, 2023
1 parent 24dd535 commit 856c35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tag/index.tsx
Expand Up @@ -138,7 +138,7 @@ const InternalTag: React.ForwardRefRenderFunction<HTMLSpanElement, TagProps> = (
return wrapSSR(isNeedWave ? <Wave>{tagNode}</Wave> : tagNode);
};

const Tag = React.forwardRef<unknown, TagProps>(InternalTag) as TagType;
const Tag = React.forwardRef<HTMLSpanElement , TagProps>(InternalTag) as TagType;

if (process.env.NODE_ENV !== 'production') {
Tag.displayName = 'Tag';
Expand Down

0 comments on commit 856c35e

Please sign in to comment.