-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed as not planned
Labels
✔️ Resolution: DuplicateResolved as a duplicate of another issueResolved as a duplicate of another issueStatus: Resolvedaffected-fewThis issue impacts only small number of customersThis issue impacts only small number of customersarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-builtin-componentsFeatures related to the built in components we ship or could ship in the futureFeatures related to the built in components we ship or could ship in the futurefeature-blazor-form-validationThis issue is related to forms validation in BlazorThis issue is related to forms validation in Blazorseverity-minorThis label is used by an internal toolThis label is used by an internal tool
Milestone
Description
Is your feature request related to a problem? Please describe.
It is currently not possible to validate an individual field of an EditForm without also marking the field as modified.
Currently we can call EditContext.NotifyFieldChanged to invoke validation, but that also sets the FieldState.IsModified to true for that item in the form.
Describe the solution you'd like
Please separate change notification and validation requests for properties, so we can validate without marking the state as modified.
Add a ValidateProperty(FieldIdentifier)
method to EditContext which invokes an OnFieldValidationRequested
event that validation strategies can use to trigger validation.
NotifyFieldChanged
and OnFieldChanged
should remain as it might be useful to know when an individual property is changed.
SQL-MisterMagoo and DouglasRiddle
Metadata
Metadata
Assignees
Labels
✔️ Resolution: DuplicateResolved as a duplicate of another issueResolved as a duplicate of another issueStatus: Resolvedaffected-fewThis issue impacts only small number of customersThis issue impacts only small number of customersarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-builtin-componentsFeatures related to the built in components we ship or could ship in the futureFeatures related to the built in components we ship or could ship in the futurefeature-blazor-form-validationThis issue is related to forms validation in BlazorThis issue is related to forms validation in Blazorseverity-minorThis label is used by an internal toolThis label is used by an internal tool