codegouvfr / react-dsfr

🇫🇷 The French Government Design system React toolkit
https://react-dsfr.codegouv.studio
MIT License
416 stars 56 forks source link

nativeInputProps aren't passed to the underlying input in Upload component #155

Closed ocruze closed 1 year ago

ocruze commented 1 year ago

Hi, I tried to use the Upload component and the onChangewas never getting called. So I looked into the code and it seems that the nativeInputProps aren't passed to the underlying input. I tried a dirty fix and passed the nativeInputProps to the inner input and it worked. If you'd like I can provide a PR.

garronej commented 1 year ago

Thanks a lot for the report.
Yes please we'd appreciate a PR!