Skip to content

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

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions