Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix #3876 by calling HandleOnTabChangedAsync in OnAfterRenderAsync
  • Loading branch information
vnbaaij committed Jun 5, 2025
commit 328482e426ea786bff8280204b7b60e19f47481e
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ If checked, the contents of Tab two and three will be loaded after 1 second of p
@code {
bool DeferredLoading = false;

string? activeid = "tab-1";
string? activeid = "tab-3";
FluentTab? changedto;

private void HandleOnTabChange(FluentTab tab)
Expand Down
5 changes: 5 additions & 0 deletions src/Core/Components/Tabs/FluentTabs.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ protected override async Task OnAfterRenderAsync(bool firstRender)

var horizontal = Orientation == Orientation.Horizontal;
await _jsModuleOverflow.InvokeVoidAsync("fluentOverflowInitialize", _dotNetHelper, Id, horizontal, FLUENT_TAB_TAG, 25);

if (ActiveTabId is not null)
{
await HandleOnTabChangedAsync(new TabChangeEventArgs() { ActiveId = ActiveTabId });
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Core/Microsoft.FluentUI.AspNetCore.Components.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0<!--;net10.0--></TargetFrameworks>
<PackageId>Microsoft.FluentUI.AspNetCore.Components</PackageId>

<Summary>A Blazor component library leveraging Microsoft’s Fluent Design System UI. Use the look of modern Microsoft products in your Blazor applications</Summary>
Expand Down
Loading