lepikhinb / momentum-modal

MIT License
442 stars 26 forks source link

Base Component resets state when opening the modal #67

Closed bretto36 closed 7 months ago

bretto36 commented 8 months ago

Hi there. Really like what you've done with the package but i'm having one issue that i don't know if it's me or the package that's causing it. The demo app is unable to be logged into so i can't use that to test it.

What i'm experiencing is, if i have a base component with data entered into a field for example, when i click the to open the modal it clears out/resets any values/refs on the underlying page. I've tested it from the same page as the underlying route, AND other pages.

I'm making a table where they can select the items they want to edit... when they click Bulk Edit it resets what was selected. But easiest way to demo it is to just make a form and put a value in a field then click the link and it resets the form.

Is there a way around this that the underlying state does NOT reset? Or could you reset the demo app password then i could do some testing too. Thanks!