vikignt / svelte-mui

Simple Svelte 3 UI components
MIT License
318 stars 38 forks source link

expansionPanel destroys content #31

Open sourcegr opened 4 years ago

sourcegr commented 4 years ago

In a use case, the contents of the expansionPanel are created dynamically.

But when the panel is rolled-up, all the contents are destroyed, leaving the app in an undetermined state :(

It would be better to use a css method to hide the contents, instead of an {#if}.

(This problem could also appear on other components as well)