Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/darshanbaral/khata.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan Baral <darshanbaral@gmail.com>2019-07-20 05:31:56 +0300
committerDarshan Baral <darshanbaral@gmail.com>2019-07-20 05:31:56 +0300
commit3d3a3f172523bc89c2dcc4c2cc8d7be5d83d2307 (patch)
tree66dcfa7645201538801c1bdcb10b13dfea749c01 /layouts
parent0b48c288d99fed0017e3ad11dc713652854a6e8e (diff)
Fixes menu disappearing issue when clicking Taxa
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/menu/menu_alltaxa.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/menu/menu_alltaxa.html b/layouts/partials/menu/menu_alltaxa.html
index f815784..0d83ea9 100644
--- a/layouts/partials/menu/menu_alltaxa.html
+++ b/layouts/partials/menu/menu_alltaxa.html
@@ -3,8 +3,10 @@
</div>
<script>
let resetMenus = function() {
- resetMainMenu();
- document.querySelector(".all-menu").classList.add("d-none");
+ if (vw.matches) {
+ resetMainMenu();
+ document.querySelector(".all-menu").classList.add("d-none");
+ }
if (document.querySelector(".dropdown-content")) {
resetSectionMenu();
zeroHeight(document.querySelector(".dropdown-content"));