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

Mobile Menu: Toggle Submenu Broken #316

Open
fido-hh opened this issue Sep 12, 2023 · 2 comments
Open

Mobile Menu: Toggle Submenu Broken #316

fido-hh opened this issue Sep 12, 2023 · 2 comments

Comments

@fido-hh
Copy link

fido-hh commented Sep 12, 2023

As explained here:
elementor/elementor#22708

New installation as in above mentioned issue.
No toggle element shows up on first menu level, therefore submenu items cant be opened on mobile.
Pretty sure this is not a support request but a bug.

@kapytanhook
Copy link

Also encountered this bug, still here in version 3.1.0
If a submenu is folded open it needs to prevent the click event from triggering the link on the parent menu button.
Because this will refresh the page, not letting you ever open anything.

in
assets/js/hello-frontend.js

in end of handleMenuChildren(event) {

you add:
if(parentLi.classList.contains('elementor-active')){
event.preventDefault();
}

and it works fine both mobile and on desktop

@lcgitrdone
Copy link

I'll have to look into that -- thanks! That happens on one of my sites (not hosted by me). My solution was to stop using WP Rocket's Unused CSS feature and revert to their now-deprecated Critical RSS feature.

I can't say if my bug and this one are the same (b/c I don't understand the code at the level necessary), but the results seem identical.

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

3 participants