-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(material-experimental/mdc-chips): implement trailing icon foundation #19318
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
Conversation
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
170bece
to
27edd2f
Compare
…undation Project import generated by Copybara. These changes are mostly based on @crisbeto's #18877 with some additional changes from @ProDee PiperOrigin-RevId: 310167103 Co-authored-by: crisbeto <[email protected]> Co-authored-by: prodee <[email protected]>
27edd2f
to
94ef838
Compare
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Marking as merge safe because this PR will be merged first in google3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
bf1d868
to
f45ceb4
Compare
Fixes an issue where pressing any non-arrow key while the chip remove icon is focused removes the chip. This should only happen for ENTER or SPACE. This issue was introduced when MDC refactored the chip foundation. The handleTrailingIconInteraction method, which used to call shouldHandleInteraction to detect if the keydown event was ENTER or SPACE, was replaced with handleTrailingActionInteraction, which handles all keydown events. This change was made in github.com/material-components/material-components-web/pull/5890, and MDC chips were migrated in github.com/angular/pull/19318.
Fixes an issue where pressing any non-arrow key while the chip remove icon is focused removes the chip. This should only happen for ENTER or SPACE. This issue was introduced when MDC refactored the chip foundation. The handleTrailingIconInteraction method, which used to call shouldHandleInteraction to detect if the keydown event was ENTER or SPACE, was replaced with handleTrailingActionInteraction, which handles all keydown events. This change was made in material-components/material-components-web/pull/5890, and MDC chips were migrated in angular/pull/19318.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Project import generated by Copybara.
These changes are mostly based on @crisbeto's #18877 with some
additional changes from @ProDee