mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 11:03:13 +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}
|
ref={ref => fileInput = ref}
|
||||||
className="hidden"
|
className="hidden"
|
||||||
type="file"
|
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>
|
</a>
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user