Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a sample for deep validation #44

Merged
merged 1 commit into from
Aug 29, 2019
Merged

Conversation

pranavkm
Copy link
Contributor

No description provided.

@foreach (var number in person.PhoneNumbers)
{
<p>
Phone: <InputText @bind-Value="number.Number" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe consider replacing the <ValidationSummary /> with a set of <ValidationMessage /> components (one next to each input). Otherwise if you get an invalid phone number, for example, the message won't make clear which of the phone numbers is invalid.

Copy link
Member

@SteveSandersonMS SteveSandersonMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@pranavkm pranavkm merged commit 441354c into master Aug 29, 2019
@pranavkm pranavkm deleted the prkrishn/deep-validation branch January 7, 2021 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants