Closed bicycleghost closed 12 months ago
Hello !
Please share a codesandbox repro, without React Hook Form
I cannot seem to reproduce the errorr in codesanbox. It seems like my setup is the problem, but I have no idea what might be causing it. The issue persists even without react-form-hook.
Also, didn't mean to close the issue (:
I found the issue, it was because I initialized file as undefined instead of null. That seems to solve the issue.
I found the issue, it was because I initialized file as undefined instead of null. That seems to solve the issue.
This was also an issue I ran into. Shouldn't the placeholder show regardless of file
being null or undefined?
The placeholder text is not showing when rendered unless a file is chose and then removed.
To Reproduce Steps to reproduce the behavior:
Usage (with react-hook-form):
Expected behavior I would expect the placeholder text to be showing at all times if no file is choose.
Screenshots
![chrome_pyTJQ8kdZP](https://github.com/viclafouch/mui-file-input/assets/21306104/1c532438-c597-4ca6-9c86-36a96b619631)
Desktop: