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(material/checkbox): model value not updated when using toggle method #11902

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

crisbeto
Copy link
Member

Along the same lines as #11812. The checkbox doesn't update its ControlValueAccessor value when it is toggled via the toggle method.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 23, 2018
@devversion devversion added pr: lgtm action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Jun 23, 2018
@ngbot
Copy link

ngbot bot commented Jun 23, 2018

I see that you just added the pr: merge ready label, but the following checks are still failing:
    failure missing required label: "target: *"

If you want your PR to be merged, it has to pass all the CI checks.

If you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@ngbot
Copy link

ngbot bot commented Jun 29, 2018

Hi @crisbeto! This PR has merge conflicts due to recent upstream merges.
Please help to unblock it by resolving these conflicts. Thanks!

Copy link
Contributor

@tinayuangao tinayuangao left a comment

Choose a reason for hiding this comment

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

LGTM

@ngbot
Copy link

ngbot bot commented Aug 1, 2018

Hi @crisbeto! This PR has merge conflicts due to recent upstream merges.
Please help to unblock it by resolving these conflicts. Thanks!

@ngbot ngbot bot unassigned tinayuangao Aug 1, 2018
@crisbeto crisbeto force-pushed the checkbox-toggle-model-value branch from 62b9ef7 to d81826b Compare August 1, 2018 21:17
@gizm0bill
Copy link

Are you still working on this? Merge it already!

@crisbeto crisbeto force-pushed the checkbox-toggle-model-value branch from d81826b to 166b3b1 Compare January 4, 2019 16:05
@mmalerba mmalerba added aaa and removed aaa labels Apr 25, 2019
@andrewseguin andrewseguin added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label May 30, 2019
@crisbeto crisbeto force-pushed the checkbox-toggle-model-value branch from 166b3b1 to da25796 Compare June 19, 2019 20:41
@EKashpersky
Copy link

Hey guys, are there going to be any updates on the merging?

@EKashpersky
Copy link

@jelbourn hey there's your review is required, could you check your schedule and say when it's possible to do?
Thx in advance.

@gizm0bill
Copy link

Or appoint someone else to do it

crisbeto added a commit to crisbeto/material2 that referenced this pull request Sep 29, 2019
…toggle method

Along the same lines as angular#11902. When the value of an experimental checkbox is changed through the `toggle` method it wasn't being propagated to the `ControlValueAccessor`.
mmalerba pushed a commit that referenced this pull request Oct 1, 2019
…toggle method (#17229)

Along the same lines as #11902. When the value of an experimental checkbox is changed through the `toggle` method it wasn't being propagated to the `ControlValueAccessor`.
mmalerba pushed a commit that referenced this pull request Oct 8, 2019
…toggle method (#17229)

Along the same lines as #11902. When the value of an experimental checkbox is changed through the `toggle` method it wasn't being propagated to the `ControlValueAccessor`.

(cherry picked from commit f178f20)
@etonyali
Copy link

It is ridiculous to take so much time to merge this. I am trying to get valueChanges for checkbox but it is not working. We are tired of hacking stuff...

Copy link
Member

@Splaktar Splaktar left a comment

Choose a reason for hiding this comment

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

LGTM

@mmalerba mmalerba removed the lgtm label Jul 31, 2020
@JoanSernaLeiton
Copy link

When is it planned to merge these changes ? @Splaktar @crisbeto

@andrewseguin andrewseguin removed the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 29, 2021
@crisbeto crisbeto changed the title fix(checkbox): model value not updated when using toggle method fix(material/checkbox): model value not updated when using toggle method Mar 20, 2022
Along the same lines as angular#11812. The checkbox doesn't update its `ControlValueAccessor` value when it is toggled via the `toggle` method.
@crisbeto crisbeto force-pushed the checkbox-toggle-model-value branch from da25796 to 2be03a3 Compare March 20, 2022 08:28
@crisbeto crisbeto requested a review from andrewseguin as a code owner March 20, 2022 08:28
@crisbeto crisbeto merged commit 9371606 into angular:master Mar 21, 2022
crisbeto added a commit that referenced this pull request Mar 21, 2022
…hod (#11902)

Along the same lines as #11812. The checkbox doesn't update its `ControlValueAccessor` value when it is toggled via the `toggle` method.

(cherry picked from commit 9371606)
crapStone pushed a commit to Calciumdibromid/CaBr2 that referenced this pull request Mar 27, 2022
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@angular/cdk](https://github.com/angular/components) | dependencies | patch | [`13.3.0` -> `13.3.1`](https://renovatebot.com/diffs/npm/@angular%2fcdk/13.3.0/13.3.1) |
| [@angular/material](https://github.com/angular/components) | dependencies | patch | [`13.3.0` -> `13.3.1`](https://renovatebot.com/diffs/npm/@angular%2fmaterial/13.3.0/13.3.1) |

---

### Release Notes

<details>
<summary>angular/components</summary>

### [`v13.3.1`](https://github.com/angular/components/blob/HEAD/CHANGELOG.md#&#8203;1331-pearl-necklace-2022-03-23)

[Compare Source](angular/components@13.3.0...13.3.1)

##### cdk

| Commit | Type | Description |
| -- | -- | -- |
| [cf24b704d](angular/components@cf24b70) | fix | **schematics:** mark `ng-add` schematics as hidden |
| [4a4ebe7df](angular/components@4a4ebe7) | perf | **scrolling:** do not run change detection if there are no `viewChange` listeners ([#&#8203;23987](angular/components#23987)) |

##### material

| Commit | Type | Description |
| -- | -- | -- |
| [0897f49d7](angular/components@0897f49) | fix | **autocomplete:** re-enter the Angular zone when the `NgZone.onStable` emits ([#&#8203;24569](angular/components#24569)) |
| [51ddecbbb](angular/components@51ddecb) | fix | **checkbox:** model value not updated when using toggle method ([#&#8203;11902](angular/components#11902)) |
| [174871713](angular/components@1748717) | fix | **input:** resolve memory leak on iOS ([#&#8203;24599](angular/components#24599)) |
| [eed36b3ba](angular/components@eed36b3) | fix | **schematics:** mark `ng-add` schematics as hidden |
| [240b238f9](angular/components@240b238) | fix | **select:** NVDA reading out table when opening select on Chrome ([#&#8203;23446](angular/components#23446)) |
| [e04b7aeee](angular/components@e04b7ae) | fix | **select:** value set through property not being propagated to value accessor ([#&#8203;10246](angular/components#10246)) |
| [5e5b296bf](angular/components@5e5b296) | perf | **icon:** remove IE workaround ([#&#8203;24514](angular/components#24514)) |

##### material-experimental

| Commit | Type | Description |
| -- | -- | -- |
| [b09c7427c](angular/components@b09c742) | fix | **mdc-chips:** replace innerText w/ textContent ([#&#8203;24635](angular/components#24635)) |

##### multiple

| Commit | Type | Description |
| -- | -- | -- |
| [0a3c7d7c4](angular/components@0a3c7d7) | fix | memory leak when forcing focus ([#&#8203;24520](angular/components#24520)) |

#### Special Thanks

Alan Agius, Artur Androsovych, CommanderRoot, Jeremy Elbourn, Joey Perrott, Kristiyan Kostadinov, Paul Gschwendtner, Wagner Maciel and tomicarsk6

<!-- CHANGELOG SPLIT MARKER -->

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Co-authored-by: cabr2-bot <cabr2.help@gmail.com>
Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1241
Reviewed-by: Epsilon_02 <epsilon_02@noreply.codeberg.org>
Co-authored-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
Co-committed-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
forsti0506 pushed a commit to forsti0506/components that referenced this pull request Apr 3, 2022
…hod (angular#11902)

Along the same lines as angular#11812. The checkbox doesn't update its `ControlValueAccessor` value when it is toggled via the `toggle` method.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.