Skip to content

Commit c23e7ed

Browse files
Merge pull request #7019 from syncfusion-content/ES-985735-stepper
985735: Updated steps validation code to resolve error.
2 parents b7d95f7 + 1e4c098 commit c23e7ed

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)