From 85ff8ddf3bfd056e09f55e73b24418ed0ae1eced Mon Sep 17 00:00:00 2001 From: junjie Date: Mon, 28 May 2018 17:15:08 +0800 Subject: [PATCH] Bug fix of multilevel menu in the small mode. --- build/js/custom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/js/custom.js b/build/js/custom.js index ac95d6b2..1b9f875b 100644 --- a/build/js/custom.js +++ b/build/js/custom.js @@ -87,8 +87,8 @@ var setContentHeight = function () { { if ( $BODY.is( ".nav-sm" ) ) { - $SIDEBAR_MENU.find( "li" ).removeClass( "active active-sm" ); - $SIDEBAR_MENU.find( "li ul" ).slideUp(); + $li.parent().find( "li" ).removeClass( "active active-sm" ); + $li.parent().find( "li ul" ).slideUp(); } } $li.addClass('active');