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

shift + tab handled #1119

Merged
merged 2 commits into from
Aug 31, 2020
Merged

Conversation

faizanu94
Copy link
Contributor

@faizanu94 faizanu94 commented Aug 25, 2020

This pull request closes #1076 by adding an additional check on data-popper-placement attribute on document.activeElement when shiftKey is pressed

@@ -79,7 +79,7 @@
}
// Backward tab
if (e.shiftKey) {
if (document.activeElement === firstFocusableElement) {
if (document.activeElement === firstFocusableElement || document.activeElement.hasAttribute("data-popper-placement")) {
Copy link
Member

Choose a reason for hiding this comment

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

Would it perhaps make more sense to check for a class of shepherd-element?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That would be perfect! Thanks for the suggestion

@RobbieTheWagner RobbieTheWagner merged commit ebdd8fc into shipshapecode:master Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants