Skip to content

fix(chips): unable to tab out of chip list with input on firefox #15060

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

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Feb 2, 2019

Fixes user focus being wrapped back to the first chip, when trying to tab out of a chip list that has an input, on Firefox.

Note: the Browserstack failure seems to unrelated.

Fixes #15011.

@crisbeto crisbeto added Accessibility This issue is related to accessibility (a11y) target: patch This PR is targeted for the next patch release labels Feb 2, 2019
@crisbeto crisbeto requested a review from jelbourn as a code owner February 2, 2019 10:28
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 2, 2019
@crisbeto crisbeto force-pushed the 15011/chip-input-focus-escape-firefox branch from 2f8a8bb to 0b3c47f Compare February 2, 2019 10:35
@jelbourn
Copy link
Member

I don't quite follow why the focus is trapped- what's going on there?

@crisbeto
Copy link
Member Author

If I remember correctly, the problem was on Firefox where if you tabbed from a chip, your focus would land on the chip list because it has a tabindex of zero, which would then revert it to one of the chips. A while ago we had the same issue for Chrome, but only happened when you were shift-tabbing.

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Apr 2, 2019
@mmalerba mmalerba added aaa and removed aaa labels Apr 25, 2019
@jelbourn
Copy link
Member

@crisbeto this passes presubmit, just needs a rebase

Fixes user focus being wrapped back to the first chip, when trying to tab out of a chip list that has an input, on Firefox.

Fixes angular#15011.
@crisbeto
Copy link
Member Author

Rebased.

@crisbeto crisbeto force-pushed the 15011/chip-input-focus-escape-firefox branch from 0b3c47f to fcc45fc Compare May 13, 2019 16:19
@jelbourn jelbourn merged commit e488152 into angular:master May 13, 2019
RudolfFrederiksen pushed a commit to RudolfFrederiksen/material2 that referenced this pull request Jun 21, 2019
…ular#15060)

Fixes user focus being wrapped back to the first chip, when trying to tab out of a chip list that has an input, on Firefox.

Fixes angular#15011.
@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 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y) action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chips example has a keyboard trap in Firefox
4 participants