shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
58.62k stars 3.2k forks source link

[bug]: Inside of a drawer form is not reseting. #3607

Closed nisargkavi closed 2 weeks ago

nisargkavi commented 2 weeks ago

Describe the bug

I have a form. When I fill it out and click the submit button, the data is submitted. At that time, I also reset the form. However, when I close the drawer and then reopen it, the previously submitted data reappears in the input fields. I'm trying to fix this issue. Can you help, if possible?

Affected component/components

Drawer

How to reproduce

https://github.com/shadcn-ui/ui/assets/76679390/30f9f6ac-9791-455c-bf9e-e4fb4520a474

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

Browers

Before submitting