Skip to content

Commit 1cee5d7

Browse files
committed
Fix double send telemetry event BROWSER_JSON_VALUE_IMPORT_CLICKED
1 parent 7c2b9d7 commit 1cee5d7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const UploadFile = (props: Props) => {
2828
return (
2929
<EuiButtonEmpty
3030
className={styles.emptyBtn}
31-
onClick={() => onClick?.()}
3231
data-testid="upload-file-btn"
3332
>
3433
<label htmlFor={id} className={styles.uploadBtn}>
@@ -40,6 +39,10 @@ const UploadFile = (props: Props) => {
4039
data-testid={id}
4140
accept={accept || '*'}
4241
onChange={handleFileChange}
42+
onClick={(event) => {
43+
event.stopPropagation()
44+
onClick?.()
45+
}}
4346
className={styles.fileDrop}
4447
aria-label="Select file"
4548
/>

0 commit comments

Comments
 (0)