Browse Source
fix: enhance tag type (#42235)
Co-authored-by: gaoqi <gaoqi@onething.net>
pull/42231/head
qi gao
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
components/tag/index.tsx
|
|
@ -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'; |
|
|
|