Skip to content

Commit

Permalink
bug fix: "hideOnClick: true" not working in collapsible mode if the m…
Browse files Browse the repository at this point in the history
…enu item text is wrapped in a SPAN
  • Loading branch information
vadikom committed Mar 20, 2017
1 parent 935bf50 commit d773d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery.smartmenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
return;
}
// hide on any click outside the menu or on a menu link
if (this.visibleSubMenus.length && !$.contains(this.$root[0], e.target) || $(e.target).is('a')) {
if (this.visibleSubMenus.length && !$.contains(this.$root[0], e.target) || $(e.target).closest('a').length) {
this.menuHideAll();
}
},
Expand Down

0 comments on commit d773d07

Please sign in to comment.