From 90367b0c1e1ed2526bf2275c4572ca6fb997f458 Mon Sep 17 00:00:00 2001 From: masumulu28 Date: Fri, 10 May 2024 12:19:28 +0300 Subject: [PATCH] fix: menu toggle behavior in theme-basic module --- .../wwwroot/themes/basic/layout.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/basic-theme/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/wwwroot/themes/basic/layout.js b/modules/basic-theme/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/wwwroot/themes/basic/layout.js index d87045c85e..7a85ffc172 100644 --- a/modules/basic-theme/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/wwwroot/themes/basic/layout.js +++ b/modules/basic-theme/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/wwwroot/themes/basic/layout.js @@ -1,5 +1,7 @@ $(function () { $('.dropdown-menu a.dropdown-toggle').on('click', function (e) { + $(this).next().toggleClass('show'); + if (!$(this).next().hasClass('show')) { $(this).parents('.dropdown-menu').first().find('.show').removeClass("show"); }