]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Fix dropdown destroy method 9381/head
authorDinis Correia <diniscorreia@mac.com>
Wed, 16 Nov 2016 13:58:10 +0000 (13:58 +0000)
committerDinis Correia <diniscorreia@mac.com>
Wed, 16 Nov 2016 13:58:10 +0000 (13:58 +0000)
commitf3f24fe7d1cabeb23be2b3b8c87be61f338c91de
tree8ba4ee1e9dd9802f22bc132ffd6590fe97c275a8
parent41137b01455b73c217e1cf23b353bed363c0da29
Fix dropdown destroy method

This fixes issue #9339. When destroying a dropdown menu, the dropdown
classes wouldn’t be removed if using a different class structure (for
instance, using custom class names instead of `.menu`). Previous
versions selected all child elements of the menu but on the latest
version only direct `li` childs or  elements with `.menu` class

This commit ensures `ul` elements also get the classes removed, for
those cases where custom classes are used.
js/foundation.util.nest.js