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

Problem closing the menu when clicking on the page which is already open #5

Open
ghost opened this issue Sep 28, 2017 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Sep 28, 2017

I'm using the touch-menu-la in a Cordova app which consists out of multiple html pages and I'm using the menu to navigate between the pages.
When I'm viewing the 'home' page and I swipe right to get the menu, I don't want the 'home' tab in the menu to reload the page but simply close the menu when I click it. I want this so that the app runs more smoothly.
I've tried using this piece of code in my HTML file but it didn't work:

onclick="TouchMenu.close();"

When I use another custom function instead, it does work so I know the 'onclick' is not the problem.
I've also tried calling TouchMenu.close() in other places but with no luck.

Can anyone help me with this problem?

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

0 participants