Menu icon Foundation
Topbar dropdown auto-close

Hi,

My Top-bar dropdown doesn't close automatically after selecting one of the items on the dropdown. Any suggestions?

Thanks in advance! 

dropdowntopbar

Hi,

My Top-bar dropdown doesn't close automatically after selecting one of the items on the dropdown. Any suggestions?

Thanks in advance! 

Rafi Benkual over 2 years ago

 You might try one of the dropdown-menu plugin options: http://foundation.zurb.com/sites/docs/dropdown-menu.html#js-options

 

data-close-on-click or data-close-on-click-inside should do it

Gema Ramila over 2 years ago

Hi,

I tried both of those. They work if hover is enabled, but then paired with data-disable-hover it no longer closes when one of the items is clicked