File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
redisinsight/ui/src/components/upload-file Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,8 @@ const UploadFile = (props: Props) => {
26
26
}
27
27
28
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 } >
29
+ < EuiButtonEmpty className = { styles . emptyBtn } >
30
+ < label htmlFor = { id } className = { styles . uploadBtn } data-testid = "upload-file-btn" >
35
31
< EuiIcon className = { styles . icon } type = "folderOpen" />
36
32
< EuiText className = { styles . label } > Upload</ EuiText >
37
33
< input
@@ -40,6 +36,10 @@ const UploadFile = (props: Props) => {
40
36
data-testid = { id }
41
37
accept = { accept || '*' }
42
38
onChange = { handleFileChange }
39
+ onClick = { ( event ) => {
40
+ event . stopPropagation ( )
41
+ onClick ?.( )
42
+ } }
43
43
className = { styles . fileDrop }
44
44
aria-label = "Select file"
45
45
/>
You can’t perform that action at this time.
0 commit comments