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

Conversation

@pranavkm
Copy link
Member

pranavkm commented Aug 27, 2019

No description provided.

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

This comment has been minimized.

Copy link
@SteveSandersonMS

SteveSandersonMS Aug 29, 2019

Member

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 left a comment

Great!

@pranavkm pranavkm force-pushed the prkrishn/deep-validation branch from 01ce8ac to 2e56c5a Aug 29, 2019
@pranavkm pranavkm merged commit 441354c into master Aug 29, 2019
1 check passed
1 check passed
license/cla All CLA requirements met.
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.