From 16103c6d4925dbc25cc870b34451c0eba4b0f65f Mon Sep 17 00:00:00 2001 From: Dominique Deluvio <78736225+ddomdel@users.noreply.github.com> Date: Sun, 5 May 2024 17:34:12 +0800 Subject: [PATCH] Remove overlay and revert X to hamburger icon when popup disappears (#3958) 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 b29931fa..ce8a80ca 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