This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit 3c06295c2d37afe9e2c96905915c4c170a85e314
Author: Zoran Regvart <zregv...@apache.org>
AuthorDate: Mon Jun 15 21:00:01 2020 +0200

    fix: sub-menus in mobile version
    
    Bit of customization for sub-menus needed to be restored.
---
 antora-ui-camel/src/js/05-mobile-navbar.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/antora-ui-camel/src/js/05-mobile-navbar.js 
b/antora-ui-camel/src/js/05-mobile-navbar.js
index ba5cb09..85c98f0 100644
--- a/antora-ui-camel/src/js/05-mobile-navbar.js
+++ b/antora-ui-camel/src/js/05-mobile-navbar.js
@@ -9,4 +9,12 @@ document.addEventListener('DOMContentLoaded', function () {
       document.documentElement.classList.toggle('is-clipped--navbar')
     })
   })
+
+  var menuDropDowns = 
Array.prototype.slice.call(document.querySelectorAll('.has-dropdown'), 0)
+  menuDropDowns.forEach(function (el) {
+    el.addEventListener('click', function (e) {
+      e.stopPropagation()
+      el.classList.toggle('is-active')
+    })
+  })
 })

Reply via email to