dotnet/aspnetcore

Include valid/invalid state in ValidationStateChangedEventArgs

Open

#13,413 opened on Aug 24, 2019

View on GitHub
 (12 comments) (11 reactions) (0 assignees)C# (10,653 forks)batch import
Pillar: Complete Blazor Webaffected-mediumarea-blazorenhancementfeature-blazor-builtin-componentshelp wantedseverity-major

Repository metrics

Stars
 (37,933 stars)
PR merge metrics
 (Avg merge 16d 9h) (258 merged PRs in 30d)

Description

Is your feature request related to a problem? Please describe.

I'm trying to detect when a Blazor EditForm's valid state changes so I can enable/disable a Submit button.

Describe the solution you'd like

Add an IsValid Boolean property to ValidationStateChangedEventArgs, and also add a ValidationStateChanged event to EditForm.

Additional context

Add any other context or screenshots about the feature request here.

Contributor guide