-
Notifications
You must be signed in to change notification settings - Fork 11
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: Off by one error in next/previous tab #15
Conversation
@@ -23,4 +23,7 @@ | |||
"autoFix": true | |||
}, | |||
], | |||
"editor.codeActionsOnSave": { |
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.
The ESLint plugin insisted on this change (added every time I removed it).
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.
interesting, I will keep it then
|
||
return seq[nextIndex] | ||
} |
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.
lint rules prevented an else
here
cypress/integration/spec.js
Outdated
@@ -1,4 +1,5 @@ | |||
/// <reference types="cypress"/> | |||
/* global cy */ |
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.
lint-staged
forced me to add this.
src/index.js
Outdated
@@ -1,3 +1,4 @@ | |||
/* global Cypress, cy */ |
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.
lint-staged
forced me to add this
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.
are you sure you are using local install of eslint? the cypress plugin should have these globals set
looks good. I'm going to remove the eslint related changes since I think it's caused by either the cypress plugin not being installed or using global eslint 👍 |
🎉 This PR is included in version 1.0.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This change fixes the edge cases when using shift-tab when on the first focusable element and the edge case when using tab when on the last focusable element. The error was "Cannot call select of undefined"