Prechádzať zdrojové kódy

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

Wisdom 3 rokov pred
rodič
commit
c35db34bd9
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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()}