Auto close mobile menu

In this document, we will go over how to use custom JavaScript to auto-close a menu bar while on mobile.


Here's how that will look




Simply add the following JavaScript to the Layout the menu is located in. In our example, this menu is located in the Default Layout

$('.navbar .item').on("click",function(){

$('.nav .item.dropdown-submenu').unbind();