From 19d2de2318439c4dad8ef538d3dd14ad50bcc3bf Mon Sep 17 00:00:00 2001 From: kapytanhook Date: Fri, 27 Sep 2024 17:19:47 +0200 Subject: [PATCH] Submenu fix on mobile phone Allows the submenu to open without the parent link getting clicked on mobile phone --- assets/dev/js/frontend/hello-frontend.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/dev/js/frontend/hello-frontend.js b/assets/dev/js/frontend/hello-frontend.js index 87041b54..2a9f68f5 100644 --- a/assets/dev/js/frontend/hello-frontend.js +++ b/assets/dev/js/frontend/hello-frontend.js @@ -67,6 +67,9 @@ class elementorHelloThemeHandler { } parentLi.classList.toggle( 'elementor-active' ); + if(parentLi.classList.contains('elementor-active')){ + event.preventDefault(); + } } }