diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-05-15 13:22:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-15 13:22:29 +0200 |
commit | 69c5a0b6993f70340a0a4b99159086c638d77103 (patch) | |
tree | 30fe9bb1d562862f5b41f62f9fae25efad6b4c59 /web/src/js/components/common/FileChooser.jsx | |
parent | fe01adff0f21a5cf866cf55e9b0fe7cc0805a08e (diff) | |
parent | c327ae853c8e33c50f575fe3589aa1bdda64ba19 (diff) | |
download | mitmproxy-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.jsx | 2 |
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> ) |