somewebmedia / hc-offcanvas-nav

JavaScript library for creating toggled off-canvas multi-level navigations, allowing endless nesting of submenu elements, supporting swipe gestures, keyboard interactions and ARIA attributes.
https://somewebmedia.github.io/hc-offcanvas-nav/
MIT License
335 stars 82 forks source link

Setting maxWidth hide toggle #1

Closed grayter1 closed 6 years ago

grayter1 commented 6 years ago

If maxWidth property was set to 980 (as you provided in your github doc) toggle button hides. Also adding display: block for this toggle is not working because navigation menu is blank after toggle click.

somewebmedia commented 6 years ago

Hi @grayter1, sorry for late response, I was on vacation. That is the desired behaviour, because you don't need a toggle button when the offcanvas nav is disabled.

somewebmedia commented 6 years ago

The maxWidth is referred to screen width at which to show/hide the nav and the toggle.