slimmenu icon indicating copy to clipboard operation
slimmenu copied to clipboard

How to destroy Slimmenu / Problem with re-rendering

Open fischeme opened this issue 8 years ago • 1 comments

In my SPA app, I need to rebuild the menu as different page content gets displayed. I remove the navigation DOM content and re-render it then reinitialize slimmenu. This puts slimmenu in a confused/broken state - showing the menu_collapser even on wide screens when it should not, yet showing the items not full width. I have tried initializing slimmenu only the first time but then the navigation is not properly initialized upon re-render. For this use case, what is the proper way to fully unload/destroy a previous slimmenu instance?

fischeme avatar Apr 07 '17 17:04 fischeme

same issue here :+1:

notrealdev avatar Aug 01 '17 02:08 notrealdev