mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-05 21:50:05 +08:00
!786 fix(#I2A3Q1): set original tab item active to false in Tab.Add method
* fix: 修复 Tab Add 方法
This commit is contained in:
parent
b6ca852b87
commit
3b17b12626
@ -396,6 +396,7 @@ namespace BootstrapBlazor.Components
|
||||
public void Add(Dictionary<string, object> parameters)
|
||||
{
|
||||
var item = TabItem.Create(parameters);
|
||||
if (item.IsActive) _items.ForEach(i => i.SetActive(false));
|
||||
_items.Add(item);
|
||||
StateHasChanged();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user