Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to destroy Slimmenu / Problem with re-rendering #84

Open
fischeme opened this issue Apr 7, 2017 · 1 comment
Open

How to destroy Slimmenu / Problem with re-rendering #84

fischeme opened this issue Apr 7, 2017 · 1 comment

Comments

@fischeme
Copy link

fischeme commented Apr 7, 2017

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?

@notrealdev
Copy link

same issue here 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants