Browse Source

fix: expand the clickable area of the close button in the Upload (#525)

Wisdom 3 years ago
parent
commit
c35db34bd9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/semi-ui/upload/fileCard.tsx

+ 2 - 2
packages/semi-ui/upload/fileCard.tsx

@@ -163,8 +163,8 @@ class FileCard extends PureComponent<FileCardProps> {
                 {showReplace && replace}
                 {showPicInfo && picInfo}
                 {!disabled && (
-                    <div className={closeCls}>
-                        <IconClose tabIndex={0} role="button" size="extra-small" onClick={e => this.onRemove(e)} />
+                    <div className={closeCls} onClick={e => this.onRemove(e)}>
+                        <IconClose tabIndex={0} role="button" size="extra-small" />
                     </div>
                 )}
                 {this.renderPicValidateMsg()}