Skip to content

Commit

Permalink
Fix casing of "isValid" in form code examples (#31313)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored Dec 28, 2023
1 parent ec06366 commit f051847
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aspnetcore/blazor/forms/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ public class CustomFieldClassProvider : FieldCssClassProvider
public override string GetFieldCssClass(EditContext editContext,
in FieldIdentifier fieldIdentifier)
{
var isValid = editContext.isValid(fieldIdentifier);
var isValid = editContext.IsValid(fieldIdentifier);

return isValid ? "validField" : "invalidField";
}
Expand Down Expand Up @@ -1507,7 +1507,7 @@ public class CustomFieldClassProvider2 : FieldCssClassProvider
{
if (fieldIdentifier.FieldName == "Name")
{
var isValid = editContext.isValid(fieldIdentifier);
var isValid = editContext.IsValid(fieldIdentifier);

return isValid ? "validField" : "invalidField";
}
Expand Down Expand Up @@ -1609,7 +1609,7 @@ public class CustomFieldClassProvider3 : FieldCssClassProvider
public override string GetFieldCssClass(EditContext editContext,
in FieldIdentifier fieldIdentifier)
{
var isValid = editContext.isValid(fieldIdentifier);
var isValid = editContext.IsValid(fieldIdentifier);

if (fieldIdentifier.FieldName == "Name")
{
Expand Down

0 comments on commit f051847

Please sign in to comment.