hc-offcanvas-nav
hc-offcanvas-nav copied to clipboard
Events not working inside menu
Hi. I would like to add event on click to one of the menu element. But it looks like all events are cleared by your scrips. How to allowed add 'click' event inside menu?
They shouldn't be cleared. Can you provide some code I can see?
None of the events are working over menu items. please help me with this. this is important for me
@somewebmedia can you please help me regarding this issue?
Are you attaching your events to the original navigation before or after you have called HC Off-canvas Nav?
I have the same problem right now. addEventListener
called on Nav open isn't working for clicks and taps
Nav.on('open', function(e, settings) {
let btn = document.getElementById('testMe');
btn.addEventListener('click', () => {
console.log('clicked');
});
});
So I found events are working when removeOriginalNav: true
is set.