mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
[web] Minor fix for FileChooser.jsx
This commit is contained in:
parent
ace67b5a87
commit
5c5f308a24
@ -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>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user