fix missing name
This commit is contained in:
parent
33c1759f16
commit
b45dd3ed4d
@ -49,7 +49,7 @@ export function InputFile<T>({ onChange, children }: Props): VNode {
|
|||||||
ref={image}
|
ref={image}
|
||||||
style={{ display: "none" }}
|
style={{ display: "none" }}
|
||||||
type="file"
|
type="file"
|
||||||
name={String(name)}
|
// name={String(name)}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const f: FileList | null = e.currentTarget.files;
|
const f: FileList | null = e.currentTarget.files;
|
||||||
if (!f || f.length != 1) {
|
if (!f || f.length != 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user