浏览代码

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

Wisdom 3 年之前
父节点
当前提交
c35db34bd9
共有 1 个文件被更改,包括 2 次插入2 次删除
  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()}