Skip to content
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

Bug fix: Keyboard shortcut should not select node when clickAction is set to focus. #166

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

yhy-1
Copy link
Collaborator

@yhy-1 yhy-1 commented Dec 5, 2023

No description provided.

@yhy-1 yhy-1 changed the title Bug fix for keyboard shortcut when clickAction is set to focus, node should not be selectable. Bug fix: Keyboard shortcut should not select node when clickAction is set to focus. Dec 5, 2023
shiftKey: true,
});
nodes.forEach((x) => expect(x).toHaveAttribute("aria-selected", "false"));
nodes[4].focus();

Choose a reason for hiding this comment

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

Nit: maybe add some comment why we use exactly the node with index 4

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just want to ensure that the focus node has an item to shift up to.

@mellis481 mellis481 merged commit 125cc76 into master Dec 5, 2023
1 check passed
@mellis481 mellis481 deleted the bug/UIEN-4263 branch December 5, 2023 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants