AspNetCore.Docs
AspNetCore.Docs copied to clipboard
Blazor InputX component use outside of an EditContext/Form
Input{X} components are covered by the Forms and validation topic with a central focus on using them with an edit context (EditContext/EditForm) pre-7.0. We already have one Input{X} component in use outside of an edit context (InputFile). The rest should be useful outside of an edit context for 7.0 or later ...
-
Ideally we'd like to support the input controls existing outside an editcontext.
per Steve at https://github.com/dotnet/aspnetcore/issues/27804#issuecomment-892070966.
-
Mackinnon furthered things (across the board?) with ...
Blazor input component support when EditContext is not supplied https://github.com/dotnet/aspnetcore/pull/35640
... with the caveat on styling ...
Validation styling won't be applied to input components without an
EditContext.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: eef47457-c8cf-74a4-b884-c1fe5c2ef52d
- Version Independent ID: 09a02d10-2834-467d-d8c2-3fd19ceb3863
- Content: ASP.NET Core Blazor forms and validation
- Content Source: aspnetcore/blazor/forms-validation.md
- Product: aspnet-core
- Technology: aspnetcore-blazor
- GitHub Login: @guardrex
- Microsoft Alias: riande