Browse Source

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

Wisdom 3 năm trước cách đây
mục cha
commit
c35db34bd9

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

@@ -163,8 +163,8 @@ class FileCard extends PureComponent<FileCardProps> {
                 {showReplace && replace}
                 {showReplace && replace}
                 {showPicInfo && picInfo}
                 {showPicInfo && picInfo}
                 {!disabled && (
                 {!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>
                     </div>
                 )}
                 )}
                 {this.renderPicValidateMsg()}
                 {this.renderPicValidateMsg()}