-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Add EditContext.IsValid(..) to determine if a field has any associated validation messages. #31252
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
Comments
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
@pranavkm is this something you envision for 7.0? |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Thanks for contacting us. We're moving this issue to the |
This would be a great enhancement! |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Background and Motivation
Proposed API
Add an API to query if a FieldIdentifier is valid without having to get validation messages. We have several places that get the messages only to determine this condition e.g. https://github.com/dotnet/aspnetcore/blob/main/src/Components/Web/src/Forms/InputBase.cs#L245
This has the sneaky benefit of removing yet another Linq call because we do something more optimized to determine this condition.
Usage Examples
Alternative Designs
Risks
The text was updated successfully, but these errors were encountered: