react-use-file-upload
Advanced tools
Comparing version 0.9.4 to 0.9.5
{ | ||
"name": "react-use-file-upload", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"description": "A React Hook to make dealing with file uploading easier.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -92,3 +92,2 @@ # React useFileUpload | ||
setFiles(e, 'a'); | ||
inputRef.current.value = null; | ||
}} | ||
@@ -101,3 +100,12 @@ > | ||
{/* Hide the crappy looking default HTML input */} | ||
<input ref={inputRef} type="file" multiple style={{ display: 'none' }} onChange={(e) => setFiles(e, 'a')} /> | ||
<input | ||
ref={inputRef} | ||
type="file" | ||
multiple | ||
style={{ display: 'none' }} | ||
onChange={(e) => { | ||
setFiles(e, 'a'); | ||
inputRef.current.value = null; | ||
}} | ||
/> | ||
</div> | ||
@@ -104,0 +112,0 @@ </div> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13267
205