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): focus not moved to input when clicking on touch target #26545

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Feb 1, 2023

Fixes that while we were toggling the checked state of a checkbox when its touch target is clicked, we weren't moving focus to the internal input.

Fixes #26486.

@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 Feb 1, 2023
@crisbeto crisbeto requested a review from mmalerba as a code owner February 1, 2023 13:49
@crisbeto crisbeto force-pushed the 26486/checkbox-touch-target-focus branch 2 times, most recently from 99a5a49 to f03d40e Compare February 2, 2023 08:08
…ch target

Fixes that while we were toggling the checked state of a checkbox when its touch target is clicked, we weren't moving focus to the internal `input`.

Fixes angular#26486.
@crisbeto crisbeto force-pushed the 26486/checkbox-touch-target-focus branch from f03d40e to 8a16abf Compare February 2, 2023 09:40
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Feb 2, 2023
@crisbeto crisbeto merged commit 48b4445 into angular:main Feb 2, 2023
crisbeto added a commit that referenced this pull request Feb 2, 2023
…ch target (#26545)

Fixes that while we were toggling the checked state of a checkbox when its touch target is clicked, we weren't moving focus to the internal `input`.

Fixes #26486.

(cherry picked from commit 48b4445)
crapStone pushed a commit to Calciumdibromid/CaBr2 that referenced this pull request Feb 3, 2023
This PR contains the following updates:

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

---

### Release Notes

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

### [`v15.1.3`](https://github.com/angular/components/blob/HEAD/CHANGELOG.md#&#8203;1513-obsidian-organism-2023-02-02)

[Compare Source](angular/components@15.1.2...15.1.3)

##### cdk

| Commit | Type | Description |
| -- | -- | -- |
| [d9124166a1](angular/components@d912416) | fix | **collections:** SelectionModel does not always respect the compareWith function ([#&#8203;26447](angular/components#26447)) |

##### material

| Commit | Type | Description |
| -- | -- | -- |
| [621d1755df](angular/components@621d175) | fix | **checkbox:** focus not moved to input when clicking on touch target ([#&#8203;26545](angular/components#26545)) |
| [f1d83f19c9](angular/components@f1d83f1) | fix | **dialog:** take dialog background from theme palette ([#&#8203;26324](angular/components#26324)) |
| [719cff0c4d](angular/components@719cff0) | fix | **tabs:** set color on disabled tabs ([#&#8203;26319](angular/components#26319)) |
| [9efb60f6b4](angular/components@9efb60f) | fix | **tabs:** unable to click projected content in tab label ([#&#8203;26527](angular/components#26527)) |

##### google-maps

| Commit | Type | Description |
| -- | -- | -- |
| [e48a5af71f](angular/components@e48a5af) | fix | error if API is initialized incorrectly ([#&#8203;26520](angular/components#26520)) |

#### Special Thanks

Alan Agius, Aurélien Loyer, Kristiyan Kostadinov, MECHERI Akram, Paul Gschwendtner, Pei Wang and Wagner Maciel

<!-- 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.

---

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

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTkuMiIsInVwZGF0ZWRJblZlciI6IjM0LjEyMC4wIn0=-->

Co-authored-by: cabr2-bot <[email protected]>
Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1768
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 Mar 5, 2023
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(checkbox): no persistent focus indicator if clicked on outer touch target padding
3 participants