Skip to content

fix(material-experimental/mdc-list): error with latest MDC list canary version #22636

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
May 7, 2021

Conversation

devversion
Copy link
Member

MDC updated the focus strategy for lists with multi-selection enabled.
This breaks our tests as we relied on the old strategy where the
previously focused item always becomes the focus target.

This is no longer the case as MDC now intends to focus the first
selected item of a list instead (except for non-selection lists which
are interactive; here the previously focused item is still used).

We update the tests and update the selection list so that pre-selected
options are recognized correctly so that MDC's new focus strategy works
as expected. Before this change we didn't sync the pre-selected options
with the MDC list foundation.

@devversion devversion added merge safe target: minor This PR is targeted for the next minor release labels May 6, 2021
@devversion devversion requested a review from crisbeto May 6, 2021 16:24
@devversion devversion requested review from mmalerba and a team as code owners May 6, 2021 16:24
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 6, 2021
@devversion devversion removed the request for review from a team May 6, 2021 16:25
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM with a couple of nits.

@devversion devversion force-pushed the fix/mdc-list-update-focus branch 2 times, most recently from b96fd49 to 0f04f11 Compare May 6, 2021 19:03
…y version

MDC updated the focus strategy for lists with multi-selection enabled.
This breaks our tests as we relied on the old strategy where the
previously focused item always becomes the focus target.

This is no longer the case as MDC now intends to focus the first
selected item of a list instead (except for non-selection lists which
are interactive; here the previously focused item is still used).

We update the tests and update the selection list so that pre-selected
options are recognized correctly so that MDC's new focus strategy works
as expected. Before this change we didn't sync the pre-selected options
with the MDC list foundation.
@devversion devversion force-pushed the fix/mdc-list-update-focus branch from 0f04f11 to 22bdc30 Compare May 6, 2021 19:16
@devversion devversion added the action: merge The PR is ready for merge by the caretaker label May 6, 2021
@mmalerba mmalerba merged commit be872c0 into angular:master May 7, 2021
@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 Jun 7, 2021
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 cla: yes PR author has agreed to Google's Contributor License Agreement target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants