!789 fix(#I2A979): fix submenu not expand when first load

* fix: 修复菜单首次加载时默认未展开问题
This commit is contained in:
Argo 2020-12-22 00:03:26 +08:00
parent 83f97f7e1c
commit b4bb24a05e

View File

@ -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;
}