Skip to content

fix(cdk-experimental/ui-patterns): listbox pointer event handler #30843

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
Apr 11, 2025

Conversation

wagnermaciel
Copy link
Contributor

No description provided.

@wagnermaciel wagnermaciel marked this pull request as ready for review April 10, 2025 15:51
@wagnermaciel wagnermaciel requested a review from a team as a code owner April 10, 2025 15:51
@wagnermaciel wagnermaciel requested review from crisbeto and mmalerba and removed request for a team April 10, 2025 15:51
@andrewseguin andrewseguin added the dev-app preview When applied, previews of the dev-app are deployed to Firebase label Apr 10, 2025
Copy link

Deployed dev-app for 8287e7f to: https://ng-dev-previews-comp--pr-angular-components-30843-dev-nt74kwid.web.app

Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt.

@@ -270,6 +286,9 @@ export class ListboxPattern<V> {
if (opts?.selectFromActive) {
this.selection.selectFromActive();
}
if (opts?.toggleFromAnchor) {
this.selection.toggleFromPrevSelectedItem();
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be toggleFromFocusedItem.

If I click an item to select, then press arrow down several times, then shift click, I'd expect selection to be starting from the focused item, not previously selected item.

Copy link
Contributor Author

@wagnermaciel wagnermaciel Apr 10, 2025

Choose a reason for hiding this comment

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

I don't think that's correct. Gmail & React Aria both select from the previous selected

Edit: Also see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/multiple

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We prob shouldn't use gmail as a reference, though

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah okay, trying it again I think Im wrong. LGTM!

@wagnermaciel wagnermaciel added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release labels Apr 11, 2025
@wagnermaciel wagnermaciel merged commit 1089098 into angular:main Apr 11, 2025
24 of 26 checks passed
@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 May 12, 2025
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 dev-app preview When applied, previews of the dev-app are deployed to Firebase target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants