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

Events not working inside menu #66

Open
kapdom opened this issue May 11, 2021 · 6 comments
Open

Events not working inside menu #66

kapdom opened this issue May 11, 2021 · 6 comments

Comments

@kapdom
Copy link

kapdom commented May 11, 2021

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?

@somewebmedia
Copy link
Owner

They shouldn't be cleared. Can you provide some code I can see?

@shadaabbhut
Copy link

image
image
image

None of the events are working over menu items. please help me with this. this is important for me

@shadaabbhut
Copy link

@somewebmedia can you please help me regarding this issue?

@somewebmedia
Copy link
Owner

Are you attaching your events to the original navigation before or after you have called HC Off-canvas Nav?

@5ulo
Copy link

5ulo commented Nov 3, 2021

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');
            });
        });

@5ulo
Copy link

5ulo commented Nov 3, 2021

So I found events are working when removeOriginalNav: true is set.

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

4 participants