Open menus do not close when using Dropdown via JavaScript
Created by: jayhoytt
When using Dropdown via JavaScript -- i.e. using $('.foo').dropdown()
instead of using the data attributes -- opening a menu does not close an already-opened menu as expected. Instead, all menus remain open until you click outside of an open menu.
Here is a jsfiddle demonstrating the behavior:
The first example uses data attributes. Opening one menu automatically closes another.
The second example uses JavaScript. Opening a menu does not close an already-opened menu.
The documentation implies the behavior should be same no matter which method used. Or, at least it does not indicate there would be a difference.