We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c2b9d7 commit 1cee5d7Copy full SHA for 1cee5d7
redisinsight/ui/src/components/upload-file/UploadFile.tsx
@@ -28,7 +28,6 @@ const UploadFile = (props: Props) => {
28
return (
29
<EuiButtonEmpty
30
className={styles.emptyBtn}
31
- onClick={() => onClick?.()}
32
data-testid="upload-file-btn"
33
>
34
<label htmlFor={id} className={styles.uploadBtn}>
@@ -40,6 +39,10 @@ const UploadFile = (props: Props) => {
40
39
data-testid={id}
41
accept={accept || '*'}
42
onChange={handleFileChange}
+ onClick={(event) => {
43
+ event.stopPropagation()
44
+ onClick?.()
45
+ }}
46
className={styles.fileDrop}
47
aria-label="Select file"
48
/>
0 commit comments