Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

showOnClick true does not allow submenu on mobile to minimise again

Home Forums Latest release 1.1.x showOnClick true does not allow submenu on mobile to minimise again

Viewing 1 post (of 1 total)
  • Author
  • #8373

    This smartmenus is amazing! Absolutely love it!

    I hope someone can guide me in the right direction.

    I have an issue at the moment (when I do not use showOnClick) where on my mobile menu I click a submenu and it drops down correctly, but when I click again it goes to the parent link or refreshes the page if my link is # on the parent dropdown.

    When I add the showOnClick true option, I can click on the link and it drops down..but when I click again on it it does nothing, it does not minimise the dropdown…it does nothing

    This is my code I’m using:

    /* Mobile Menu SmartMenus Init */
    jQuery(function() {
    subMenusSubOffsetX: 1,
    subMenusSubOffsetY: -8,
    showOnClick: true

    /* SmartMenus Mobile Menu toggle button */
    jQuery(function() {
    var $mobileMenuState = jQuery('#mobile-menu-state');
    if ($mobileMenuState.length) {
    /* Animate mobile menu */
    $mobileMenuState.change(function(e) {
    var $menu = jQuery('#mobile-menu');
    if (this.checked) {
    $menu.hide().slideDown(250, function() { $menu.css('display', ''); });
    } else {
    $, function() { $menu.css('display', ''); });
    /* Hide mobile menu beforeunload */
    jQuery(window).bind('beforeunload unload', function() {
    if ($mobileMenuState[0].checked) {

Viewing 1 post (of 1 total)
  • The forum ‘1.1.x’ is closed to new topics and replies.