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

Destroy on mobile screens #28

Open
michalchovanak opened this issue Jul 18, 2017 · 2 comments
Open

Destroy on mobile screens #28

michalchovanak opened this issue Jul 18, 2017 · 2 comments

Comments

@michalchovanak
Copy link

I was wondering if you plan to add an destroy/disable priority navigation from a breakpoint. For example, need to use priority navigation only for desktop sizes and disable it on mobile, because i use custom navigation on mobile screens. Is ther any solution for this problem yet? Thx

@jahvi
Copy link

jahvi commented Jul 24, 2017

It looks like there's a destroy method available so you could call that if the screen width goes below a specific size on load/resize.

@NielsInc
Copy link

Hi @jahvi, indeed, this destroy method will remove the feedback class, toggle and priorityNav functions.
However, the event listeners are still present and this causes quite some issues when you try to re-initialize the priority navigation afterwards.

Is there a way to fully destroy and re-initialize the priorityNav without event listener conflicts to enable dynamic destroy/init on resize?

Thanks

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

3 participants