fix missing name

This commit is contained in:
Sebastian 2023-01-31 11:43:01 -03:00
parent 33c1759f16
commit b45dd3ed4d
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -49,7 +49,7 @@ export function InputFile<T>({ onChange, children }: Props): VNode {
ref={image}
style={{ display: "none" }}
type="file"
name={String(name)}
// name={String(name)}
onChange={(e) => {
const f: FileList | null = e.currentTarget.files;
if (!f || f.length != 1) {