mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-22 10:07:11 +00:00
fix(nav): clicking anywhere when the nav is hidden no longer opens the menu
This commit is contained in:
parent
a5c453080d
commit
2c04cb2370
1 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,9 @@ var navigation = responsiveNav("#site-nav", { // Selector: The ID of the wrapper
|
||||||
|
|
||||||
$('html').click(function() {
|
$('html').click(function() {
|
||||||
//Hide the menus if visible
|
//Hide the menus if visible
|
||||||
|
if ($(navigation.wrapper).hasClass('opened')) {
|
||||||
navigation.toggle();
|
navigation.toggle();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#site-nav').click(function(event){
|
$('#site-nav').click(function(event){
|
||||||
|
|
Loading…
Reference in a new issue