!786 fix(#I2A3Q1): set original tab item active to false in Tab.Add method

* fix: 修复 Tab Add 方法
This commit is contained in:
Argo 2020-12-21 00:13:48 +08:00
parent b6ca852b87
commit 3b17b12626

View File

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