diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index c67cddcd1f7d4d10b220a8b7a484ac903eb6c467..3aa578101795f0ab66d63aaa9fed67250195326e 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@ - 6.6.16 + 6.6.17 diff --git a/src/BootstrapBlazor/Components/Tab/Tab.razor b/src/BootstrapBlazor/Components/Tab/Tab.razor index 4f49ce0c59a4c9f5a20794b1b8dc09e942d70409..ad0016ef96db3b0d7378ae957af1970840cca17a 100644 --- a/src/BootstrapBlazor/Components/Tab/Tab.razor +++ b/src/BootstrapBlazor/Components/Tab/Tab.razor @@ -24,12 +24,9 @@ else {
} - @if (FirstRender) - { - - @ChildContent - - } + + @ChildContent + @if (!Items.Any() && !string.IsNullOrEmpty(DefaultUrl)) { @@ -86,29 +83,29 @@ else
@if (IsOnlyRenderActiveTab) - { - var item = Items.FirstOrDefault(i => i.IsActive); - if (item != null) { -
- - @RenderTabItemContent(item.ChildContent) - -
+ var item = Items.FirstOrDefault(i => i.IsActive); + if (item != null) + { +
+ + @RenderTabItemContent(item.ChildContent) + +
+ } } - } - else - { - foreach (var item in Items) + else { -
- - @RenderTabItemContent(item.ChildContent) - -
+ foreach (var item in Items) + { +
+ + @RenderTabItemContent(item.ChildContent) + +
+ } } - } -
+ +
- }