lepikhinb / momentum-modal

MIT License
442 stars 26 forks source link

Modal/Slide-over resets form fields #50

Closed mansoorkhan96 closed 1 year ago

mansoorkhan96 commented 1 year ago

Hi,

I have a form in a slider over and when i click on submit, the form data is reset and i also dont see validation errors. Seems like its reloading the slide-over. Also the slide-over entrance animation is also not working.

I have checked all other issues.

I ran npm install momentum-modal@latest to get v0.2.1.

I have also checked to match axios version with inertia by running npm i axios@1.2.0

But still when i submit the form, it reloads the slide-over. The form data and errors are reset.

mansoorkhan96 commented 1 year ago

Solved: I was using pnpm, so deleting node_modules and using npm solved it.

I had a similar issue with another library a few days back. I am not going to use pnpm again.