Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix active item on focus #72

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export class ActiveDescendentStrategy implements NavigationPattern, FocusStrateg
}

handleFocus() {
const multiSelection =
this.control.capabilities.multiSelection && this.control.options.multiple;
// const multiSelection =
// this.control.capabilities.multiSelection && this.control.options.multiple;
const selectionPresent = this.control.selection.length > 0;

if (multiSelection && selectionPresent) {
if (selectionPresent) {
this.activateItem(this.control.selection[0]);
} else {
this.activateItem(this.control.items[0]);
Expand Down
272 changes: 0 additions & 272 deletions packages/aria-voyager/tests/listbox/multi-selection.test.ts

This file was deleted.

Loading