Skip to content

Commit 1e4c098

Browse files
authored
985735: Updated steps validation code to resolve error.
1 parent 8d938bd commit 1e4c098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blazor/stepper/steps-validation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ You can validate the fields within the stepper component. In the below shared ex
269269
private bool ValidateCurrentStep()
270270
{
271271
bool isStepValid = true;
272-
var context = new ValidationContext(model);
273-
var validationResults = new List<ValidationResult>();
272+
var context = new System.ComponentModel.DataAnnotations.ValidationContext(model);
273+
var validationResults = new List<System.ComponentModel.DataAnnotations.ValidationResult>();
274274
isStepValid = Validator.TryValidateObject(model, context, validationResults, true);
275275
276276
if (currentStep == 1)

0 commit comments

Comments
 (0)