From 6864aee3c49b6a7b97cb3758307db0974a4bf1ab Mon Sep 17 00:00:00 2001 From: Dominique Deluvio <78736225+ddomdel@users.noreply.github.com> Date: Mon, 17 Oct 2022 18:21:57 +0800 Subject: [PATCH] Removes screen overlay with the pop-up menu the `.hidden-links` popup disappears after you move the cursor out of it. However, the white overlay on the screen does not disappear, as well as the `x` nav button on the top-right, remains as is. Now when you click anywhere on the screen the popup appears again, and the `x` nav button turns back to a hamburger menu button. And when you click on the hamburger menu, the popup disappears. now it's happening the exact opposite. To remedy this, the pop up menu as well as the `x` nav button should also return back to normal once the popup disappears. This commit fixes this issue. --- assets/js/plugins/jquery.greedy-navigation.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/js/plugins/jquery.greedy-navigation.js b/assets/js/plugins/jquery.greedy-navigation.js index b29931fa3e95..ce8a80ca2874 100644 --- a/assets/js/plugins/jquery.greedy-navigation.js +++ b/assets/js/plugins/jquery.greedy-navigation.js @@ -107,6 +107,7 @@ $(function() { // Mouse has left, start the timer timer = setTimeout(function() { $hlinks.addClass('hidden'); + $('.greedy-nav__toggle').removeClass('close'); }, closingTime); }).on('mouseenter', function() { // Mouse is back, cancel the timer