Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Demo & docs] Add InputFile 'known issues' section #1680

Merged
merged 2 commits into from
Mar 12, 2024
Merged
Changes from all commits
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
18 changes: 17 additions & 1 deletion examples/Demo/Shared/Pages/InputFile/InputFilePage.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/InputFile"
@page "/InputFile"

@using FluentUI.Demo.Shared.Pages.InputFile.Examples

Expand Down Expand Up @@ -53,3 +53,19 @@
<h2 id="documentation">Documentation</h2>

<ApiDocumentation Component="typeof(FluentInputFile)" />

<h3>Known Issues</h3>
<p>
Starting with .NET 6, the <code>InputFile</code> component does not work in Server-Side Blazor applications using Autofac IoC containers. This issue is being tracked here: <a href="https://github.com/dotnet/aspnetcore/issues/38842" target="_blank" rel="noopener noreferrer">aspnetcore#38842</a>
<br />
<br />
Enable HubOptions <a href="https://learn.microsoft.com/en-us/dotnet/api/Microsoft.AspNetCore.SignalR.HubOptions.DisableImplicitFromServicesParameters" target="_blank" rel="noopener noreferrer">DisableImplicitFromServicesParameters</a> in program/startup to workaround this issue.
</p>
<CodeSnippet>
builder.Services
.AddServerSideBlazor()
.AddHubOptions(opt =>
{
opt.DisableImplicitFromServicesParameters = true;
});
</CodeSnippet>