mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-05 13:39:39 +08:00
!805 bug(#I2ARVI): multiple menu be set active when switch menu item
* fix: set active only when DisableNavigation is true
This commit is contained in:
parent
cd0b1ad874
commit
00b9c83106
@ -22,7 +22,7 @@ namespace BootstrapBlazor.Components
|
||||
public sealed partial class MenuLink
|
||||
{
|
||||
private string? ClassString => CssBuilder.Default()
|
||||
.AddClass("active", Item.IsActive && !Item.IsDisabled)
|
||||
.AddClass("active", DisableNavigation && Item.IsActive && !Item.IsDisabled)
|
||||
.AddClass("disabled", Item.IsDisabled)
|
||||
.AddClassFromAttributes(AdditionalAttributes)
|
||||
.Build();
|
||||
|
Loading…
Reference in New Issue
Block a user