-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix(cdk-experimental/ui-patterns): listbox pointer event handler #30843
Conversation
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(); |
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.
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.
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.
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
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.
We prob shouldn't use gmail as a reference, though
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.
Yeah okay, trying it again I think Im wrong. LGTM!
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. |
No description provided.