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

fix(forms): Treat empty objects as errors. #55866

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JeanMeche
Copy link
Member

In some cases the validator could return an empty object while having all validators returning null This commit makes it more consistant by treating empty error objects as valid controls.

fixes #54214

In some cases the validator could return an empty object while having all validators returning null
This commit makes it more consistant by treating empty error objects as valid controls.

fixes angular#54214
@JeanMeche JeanMeche marked this pull request as ready for review May 17, 2024 23:47
@pullapprove pullapprove bot requested a review from AndrewKushnir May 17, 2024 23:47
@AndrewKushnir AndrewKushnir requested review from dylhunn and removed request for AndrewKushnir May 17, 2024 23:53
@ngbot ngbot bot added this to the Backlog milestone May 22, 2024
Copy link
Contributor

@dylhunn dylhunn left a comment

Choose a reason for hiding this comment

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

Makes sense as a fix.

@dylhunn
Copy link
Contributor

dylhunn commented May 22, 2024

I think the CI test failure is a flake.

Running a TAP presubmit.

@dylhunn
Copy link
Contributor

dylhunn commented May 28, 2024

TAP presubmit is green. Running a TGP now.

@dylhunn
Copy link
Contributor

dylhunn commented May 29, 2024

It looks like the TGP has a single real failure. I'm going to try to fix it today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validators do not always work the expected way
2 participants