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): Don't send updates for identical input values #55761

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

Conversation

JeanMeche
Copy link
Member

In case an input event sends the same value to our forms, we will discard the update and consider the input hasn't change. This will prevent having duplicate values on the valueChanges event.

Fixes #43228

Note: Seing how this change broke our tests, I have low confidence we'll be able to merge it.

@JeanMeche JeanMeche marked this pull request as ready for review May 11, 2024 16:57
@pullapprove pullapprove bot requested a review from dylhunn May 11, 2024 16:57
@JeanMeche JeanMeche changed the title fix(forms): Don't send updates for same value fix(forms): Don't send updates for identical input values May 11, 2024
@JeanMeche JeanMeche force-pushed the forms/input-duplicate-values branch 3 times, most recently from 0db415b to efada8d Compare May 11, 2024 17:08
In case an input event sends the same value to our forms, we will discard the update and consider the input hasn't change. This will prevent having duplicate values on the valueChanges event.

Fixes angular#43228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant