From 11db001be9ecf948651bf5302da55633912c6e98 Mon Sep 17 00:00:00 2001 From: "Jay D. McHugh" Date: Fri, 14 Mar 2014 17:19:01 -0500 Subject: [PATCH] Add code to remove the hover class from the siblings of the newly selected menu choice. This is only an issue when is_hover: false --- js/foundation/foundation.topbar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/foundation/foundation.topbar.js b/js/foundation/foundation.topbar.js index d43d31bc6..ac4743af4 100644 --- a/js/foundation/foundation.topbar.js +++ b/js/foundation/foundation.topbar.js @@ -188,6 +188,8 @@ } else { li.addClass('hover'); + $(li).siblings().removeClass('hover'); + if (target[0].nodeName === 'A' && target.parent().hasClass('has-dropdown')) { e.preventDefault(); } @@ -417,4 +419,4 @@ reflow : function () {} }; -}(jQuery, this, this.document)); \ No newline at end of file +}(jQuery, this, this.document)); -- 2.47.2