Skip to content

fix(material/button-toggle): incorrect event source in some cases #25544

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

Merged
merged 1 commit into from
Aug 28, 2022

Conversation

crisbeto
Copy link
Member

Removes some logic that was trying to incorrectly match the button toggle being clicked with the model value. The logic wasn't necessary since we already know which toggle the user interacted with.

Fixes #25489.

Removes some logic that was trying to incorrectly match the button toggle being clicked with the model value. The logic wasn't necessary since we already know which toggle the user interacted with.

Fixes angular#25489.
@crisbeto crisbeto added 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 labels Aug 27, 2022
@crisbeto crisbeto requested a review from andrewseguin as a code owner August 27, 2022 10:27
@andrewseguin andrewseguin added the action: merge The PR is ready for merge by the caretaker label Aug 27, 2022
@crisbeto crisbeto merged commit 335aa0a into angular:main Aug 28, 2022
crisbeto added a commit that referenced this pull request Aug 28, 2022
…5544)

Removes some logic that was trying to incorrectly match the button toggle being clicked with the model value. The logic wasn't necessary since we already know which toggle the user interacted with.

Fixes #25489.

(cherry picked from commit 335aa0a)
forsti0506 pushed a commit to forsti0506/components that referenced this pull request Sep 16, 2022
…gular#25544)

Removes some logic that was trying to incorrectly match the button toggle being clicked with the model value. The logic wasn't necessary since we already know which toggle the user interacted with.

Fixes angular#25489.
crapStone pushed a commit to Calciumdibromid/CaBr2 that referenced this pull request Sep 22, 2022
This PR contains the following updates:

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

---

### Release Notes

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

### [`v14.2.1`](https://github.com/angular/components/blob/HEAD/CHANGELOG.md#&#8203;1421-carbon-candle-2022-09-07)

[Compare Source](angular/components@14.2.0...14.2.1)

##### cdk

| Commit | Type | Description |
| -- | -- | -- |
| [84388dd23](angular/components@84388dd) | fix | **collections:** ConnectableObservable incorrectly inferred as data source ([#&#8203;25526](angular/components#25526)) |

##### material

| Commit | Type | Description |
| -- | -- | -- |
| [8683f476c](angular/components@8683f47) | fix | **button-toggle:** incorrect event source in some cases ([#&#8203;25544](angular/components#25544)) |

#### Special Thanks

Kristiyan Kostadinov, Mark Goldberg and Paul Gschwendtner

<!-- CHANGELOG SPLIT MARKER -->

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - 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.

---

 - [x] <!-- 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).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTIuMyIsInVwZGF0ZWRJblZlciI6IjMyLjE5NC4wIn0=-->

Co-authored-by: cabr2-bot <[email protected]>
Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1537
Reviewed-by: Epsilon_02 <[email protected]>
Co-authored-by: Calciumdibromid Bot <[email protected]>
Co-committed-by: Calciumdibromid Bot <[email protected]>
@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 Sep 28, 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.

bug(MatButtonToggleGroup): Change event has undefined source
2 participants