You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data-trgt option is used to generate mobile version of the menu. However, modal popup doesn't work with menu that doesn't have submenu for mobile version.
Please note, desktop version works fine for menus without submenu.
To Reproduce
Steps to reproduce the behavior:
Add a menu without submenu
Add data-trgt panel so that mobile menu can be generated.
Make menu link point to a modal popup.
In mobile mode click on the menu (that doesn't have submenu).
Nothing happen
Expected behavior
It should open Modal popup
Additional information (optional)
Version of WET-BOEW/GCWeb you are using
v4.0.53
Desktop/Smartphone (please complete the following information)
Windows
Browser [chrome, Firefox, Edge]
The text was updated successfully, but these errors were encountered:
I upload a zip file (demo.zip) to demonstrate the issue.
Unzip
Open the menu.html in browser
Switch to mobile view
Click on “No Submenu” Item
pdhar2000
changed the title
[OTHER] Menu without submenu doesn’t work in mobile mode when menu link point to modal popup.
[Bug] Menu without submenu doesn’t work in mobile mode when menu link point to modal popup.
Oct 22, 2023
As you can see, the code is not checking if the link item is using lightbox class or not, it is always replacing with mb-item class. So solution that we are using is to check if the link item using lightbox class and not blindly replacing everything with mb-item class. This solution works with both popups and regular links.
Required information
Hi we are using the Web Experience Toolkit (WET) menu https://wet-boew.github.io/wet-boew/demos/menu/menu-en.html, which should open modal popup https://wet-boew.github.io/v4.0-ci/demos/overlay/overlay-en.html. Menu consists of both main menu items and submenus.
data-trgt option is used to generate mobile version of the menu. However, modal popup doesn't work with menu that doesn't have submenu for mobile version.
Please note, desktop version works fine for menus without submenu.
To Reproduce
Steps to reproduce the behavior:
Nothing happen
Expected behavior
It should open Modal popup
Additional information (optional)
Version of WET-BOEW/GCWeb you are using
v4.0.53
Desktop/Smartphone (please complete the following information)
The text was updated successfully, but these errors were encountered: