diff options
author | Matthew Shao <me@matshao.com> | 2017-05-13 21:01:59 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-05-13 21:01:59 +0800 |
commit | 5c5f308a24f9d936f095277aff565e0806151778 (patch) | |
tree | 7a959c9dbaecda93d6f02fa606eef3105ff04439 /web/src/js | |
parent | ace67b5a870e57cee51bd677a3573453c2181470 (diff) | |
download | mitmproxy-5c5f308a24f9d936f095277aff565e0806151778.tar.gz mitmproxy-5c5f308a24f9d936f095277aff565e0806151778.tar.bz2 mitmproxy-5c5f308a24f9d936f095277aff565e0806151778.zip |
[web] Minor fix for FileChooser.jsx
Diffstat (limited to 'web/src/js')
-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 b0bf4d8d..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])}} + onChange={e => { e.preventDefault(); if(e.target.files.length > 0) onOpenFile(e.target.files[0]); fileInput.value="";}} /> </a> ) |