aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/common/FileChooser.jsx
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-05-15 13:22:29 +0200
committerGitHub <noreply@github.com>2017-05-15 13:22:29 +0200
commit69c5a0b6993f70340a0a4b99159086c638d77103 (patch)
tree30fe9bb1d562862f5b41f62f9fae25efad6b4c59 /web/src/js/components/common/FileChooser.jsx
parentfe01adff0f21a5cf866cf55e9b0fe7cc0805a08e (diff)
parentc327ae853c8e33c50f575fe3589aa1bdda64ba19 (diff)
downloadmitmproxy-69c5a0b6993f70340a0a4b99159086c638d77103.tar.gz
mitmproxy-69c5a0b6993f70340a0a4b99159086c638d77103.tar.bz2
mitmproxy-69c5a0b6993f70340a0a4b99159086c638d77103.zip
Merge pull request #2327 from MatthewShao/jest-dev
[WIP][web] Add tests for UI components
Diffstat (limited to 'web/src/js/components/common/FileChooser.jsx')
-rw-r--r--web/src/js/components/common/FileChooser.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/js/components/common/FileChooser.jsx b/web/src/js/components/common/FileChooser.jsx
index f4607c8b..0b14a87e 100644
--- a/web/src/js/components/common/FileChooser.jsx
+++ b/web/src/js/components/common/FileChooser.jsx
@@ -21,7 +21,7 @@ export default function FileChooser({ icon, text, className, title, onOpenFile }
ref={ref => fileInput = ref}
className="hidden"
type="file"
- onChange={e => { e.preventDefault(); if(e.target.files.length > 0) onOpenFile(e.target.files[0]); fileInput = "";}}
+ onChange={e => { e.preventDefault(); if(e.target.files.length > 0) onOpenFile(e.target.files[0]); fileInput.value="";}}
/>
</a>
)