mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-05 21:50:05 +08:00
!789 fix(#I2A979): fix submenu not expand when first load
* fix: 修复菜单首次加载时默认未展开问题
This commit is contained in:
parent
83f97f7e1c
commit
b4bb24a05e
@ -87,12 +87,9 @@ namespace BootstrapBlazor.Components
|
||||
base.OnInitialized();
|
||||
|
||||
var item = FindMenuItem(Items, Navigator.ToBaseRelativePath(Navigator.Uri));
|
||||
CascadingSetActive(item);
|
||||
|
||||
if (DisableNavigation)
|
||||
{
|
||||
CascadingSetActive(item);
|
||||
}
|
||||
else
|
||||
if (!DisableNavigation)
|
||||
{
|
||||
Options.TabItemText = item?.Text;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user