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
336 stars 82 forks source link

data attributes conflict #78

Closed Bernardus closed 2 years ago

Bernardus commented 2 years ago

I'm using a 3rd party widget that i cannot control. This widget uses data-id as custom attribute. When i use this navigation in combination with this widget, the widget won't work.

This is because both the widget and this package both use the data-id attribute

Best way to solve this, is by only using/looking for the data-id ( and all other data attributes) inside #main-nav