Mobile Menu Not Working

Created on 31 May 2024, 7 months ago
Updated 16 June 2024, 6 months ago

Problem/Motivation

Update to 3.0.3 from 3.0.0 and mobile menu not working. Even change off-canvas skin to other style.

  • "Dekstop Menu" not hidden when browser width decrease to small width (phone portrait)
  • The hamburger icon when click has no effect.

Downgrade to 3.0.0 and mobile menu works again.

Steps to reproduce

  1. Update using composer "composer require 'drupal/ultimenu:^3.0'"
  2. database update "drush updb"
  3. reconfigure at admin/structure/ultimenu (just save configuration)
  4. Reconfigure ultimenu block , turn on "use off-canvas" and save
  5. clear cache "drush cr"
💬 Support request
Status

Fixed

Version

3.0

Component

Miscellaneous

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @nexg
  • Status changed to Postponed: needs info 7 months ago
  • 🇮🇩Indonesia gausarts

    Thank you.

    > "Dekstop Menu" not hidden when browser width decrease to small width (phone portrait)
    You are correct, resizing is abandoned, the latest approach is based on touch vs. no-touch devices, not device width anymore.
    Try pressing CTRL/CMD + SHIF + M, and change to any mobile device accordingly.
    Shortly, do not resize from desktop to mobile. Use the provided browser device simulators.

    You can however use old approach with media queries to hide and show based on device width, see and override css/*.css

    > The hamburger icon when click has no effect.
    It should work when you follow the steps above. Let me know if persists?

    Also just in case, did you customize anything? If so, please follow up here:
    https://www.drupal.org/node/3447576

  • 🇮🇩Indonesia gausarts

    In case you don't have device emulators, if firefox, try installing Firefox developer version. Chrome should do by default IIRC.

    See the screenshot for what I meant.

  • Status changed to Active 7 months ago
  • Hello,
    Thanks for your quick reply,

    I'm sorry I was forgot to mentioned that I use Firefox Developer browser and tested it using ctrl + shift + m . I also use my phone to test the mobile menu.

    This is a screenshot from my phone using ultimenu 3.0.3 -

    Even on desktop, the menu is stacked vertically

    This is what it should be on mobile (just downgrade to Ultimenu 3.0.0) -

  • 🇮🇩Indonesia gausarts

    Please screenshot your ultimenu block form?

    Be sure to re-save and re-configure both forms as noted in UPDATING section:

    • /admin/structure/ultimenu
    • /admin/structure/ultimenu/ULTIMENUMAINNAVIGATION

    The capital needs adjusting, different from theme to theme.

    To disable hamburger for desktop, uncheck Always use hamburger at admin block.

    More details in UPDATING and STYLING sections.

  • This is the screenshot of my ultimenu block form https://ibb.co.com/zV0ymW6

    Btw I also update ultimenu to 3.0.3 on my other site and mobile menu behave the same after update.

  • 🇮🇩Indonesia gausarts

    One obvious mistake (not expected selector) is Off-canvas element.

    It must be the previous sibling of On-canvas element.

    Press F12, Inspect the Header element, or any container siblings to the On-canvas element(s). Put its ID or class if it has no ID.

    More details:
    https://git.drupalcode.org/project/ultimenu/-/blob/3.0.x/docs/STYLING.md...

    Be sure to save /admin/structure/ultimenu to remove old settings which may break the updated structure.

    Let me know?

  • Status changed to Fixed 7 months ago
  • 🇮🇩Indonesia gausarts

    Feel free to re-open if still an issue.

    Thank you.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024