mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Fixed issue with multilevel dropdowns not closing properly in some scenarios (fixes #863)
This commit is contained in:
@@ -197,7 +197,11 @@ var Menu = new prime({
|
||||
roots = topLevel.search(' >' + selectors.item);
|
||||
|
||||
if (roots) { roots.removeClass(states.selected); }
|
||||
if (topLevel) { this.closeDropdown(topLevel); }
|
||||
if (topLevel) {
|
||||
var allRoots = topLevel.search('> ' + this.options.selectors.item);
|
||||
if (allRoots) { allRoots.forEach(this.closeDropdown.bind(this)); }
|
||||
this.closeDropdown(topLevel);
|
||||
}
|
||||
|
||||
this.toggleOverlay(topLevel);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user