Johnny-Codes / IntelliCram

0 stars 0 forks source link

Reset PDF Upload form after file is uploaded #47

Open Taiyam006 opened 11 months ago

Taiyam006 commented 11 months ago

In the PDFForm.tsx in the handleSubmit function the setFile(undefined) doesn't reset the form, I've also tried null but it doesn't work either. I think it does change the file state to null and that shows in the console, but the form itself doesn't reset.