viclafouch / mui-file-input

A file input designed for the React library MUI
https://viclafouch.github.io/mui-file-input/
MIT License
77 stars 17 forks source link

Required Issue - Form Doesn't submit #46

Closed therajuahammad closed 9 months ago

therajuahammad commented 9 months ago

Form doesn't submit after file select if is it required

https://github.com/viclafouch/mui-file-input/assets/25717712/9f137d06-c1dd-4898-a4a1-c8367aed80af

`<form onSubmit={(event) => { event.preventDefault(); console.log(value); }}

<MuiFileInput required placeholder="Insert a file" value={value} onChange={handleChange} />

`

viclafouch commented 9 months ago

Hello !

Could you please share the link of your codesandbox plz ?

therajuahammad commented 9 months ago

Hello !

Could you please share the link of your codesandbox plz ?

Sure, Link is: https://codesandbox.io/s/mui-file-input-forked-mkv2g2?file=/src/App.js

viclafouch commented 9 months ago

Fixed in https://github.com/viclafouch/mui-file-input/releases/tag/v4.0.2 !

Ty !

therajuahammad commented 9 months ago

Fixed in https://github.com/viclafouch/mui-file-input/releases/tag/v4.0.2 !

Ty !

@viclafouch Thanks