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

Fix SHIFT + TAB issue on last element in focusTrap #780

Merged
merged 1 commit into from
Dec 1, 2022
Merged

Conversation

JaZo
Copy link
Contributor

@JaZo JaZo commented Sep 20, 2022

This will prevent a jump from the last to the first element when you press SHIFT + TAB on the last element, which isn't the first element.

Issue

Given you have three focusable elements: A, B, C.

Order on TAB (correct)

A > B > C > A > B > C > etc.

Order on SHIFT + TAB (incorrect)

A > C > A > C > A > etc.

This will prevent a jump from the last to the first element when you press SHIFT + TAB on the last element, which isn't the first element.
@euvl euvl merged commit 2dcc679 into euvl:master Dec 1, 2022
@JaZo JaZo deleted the patch-1 branch December 1, 2022 10:58
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.

None yet

2 participants