Skip to content

Commit 323c3ff

Browse files
authored
Merge pull request #3635 from RedisInsight/fe/feature/bugfix_double_telemetry_event
Fix double send telemetry event BROWSER_JSON_VALUE_IMPORT_CLICKED
2 parents 27fc43b + 00f04ff commit 323c3ff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

redisinsight/ui/src/components/upload-file/UploadFile.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,8 @@ const UploadFile = (props: Props) => {
2626
}
2727

2828
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">
3531
<EuiIcon className={styles.icon} type="folderOpen" />
3632
<EuiText className={styles.label}>Upload</EuiText>
3733
<input
@@ -40,6 +36,10 @@ const UploadFile = (props: Props) => {
4036
data-testid={id}
4137
accept={accept || '*'}
4238
onChange={handleFileChange}
39+
onClick={(event) => {
40+
event.stopPropagation()
41+
onClick?.()
42+
}}
4343
className={styles.fileDrop}
4444
aria-label="Select file"
4545
/>

0 commit comments

Comments
 (0)