Browse Source

fix: [progress] render error when size change

tank0317 4 years ago
parent
commit
587502ac3c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/semi-ui/progress/index.tsx

+ 1 - 1
packages/semi-ui/progress/index.tsx

@@ -153,7 +153,7 @@ class Progress extends Component<ProgressProps, ProgressState> {
 
 
         return (
         return (
             <div className={classNames.wrapper} style={style}>
             <div className={classNames.wrapper} style={style}>
-                <svg className={classNames.svg} height={width} width={width}>
+                <svg key={size} className={classNames.svg} height={width} width={width}>
                     <circle
                     <circle
                         strokeDashoffset={0}
                         strokeDashoffset={0}
                         strokeWidth={strokeWidth}
                         strokeWidth={strokeWidth}