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

rewrote tab function #124

Merged
merged 2 commits into from
May 22, 2014
Merged

rewrote tab function #124

merged 2 commits into from
May 22, 2014

Conversation

montrezorro
Copy link
Contributor

old code doesn't work (for me) when I have more than two input.
in plus, in old code, "!e.shiftKey" doesn't work because point to the local "eventData" variable "e" and not to the "keydown eventData"

old code doesn't work (for me) when I have more than two input.
in plus, in old code, "!e.shiftKey" doesn't work because point to the local "eventData" variable "e" and not to the "keydown eventData"
add visibility condition
@cnanney
Copy link

cnanney commented May 22, 2014

This needs to be merged, I can't believe this PR is a year old. Tab index is still broken on v2.2.5 when you have more than two inputs. Here is a test case using v2.2.4, because the gh-pages branch is still on that version: http:https://jsfiddle.net/cnanney/fG9Tn/

I was just about to submit a PR with my own fix for this issue and found yours. I like that you sorted the tabindex array, I didn't think of that.

My version: https://github.com/cnanney/bootstrap-modal/commit/c1462b456711cdb14ae1cc3f403c0e8262de7943

@cnanney cnanney mentioned this pull request May 22, 2014
jschr pushed a commit that referenced this pull request May 22, 2014
@jschr jschr merged commit 6f85220 into jschr:master May 22, 2014
@jschr
Copy link
Owner

jschr commented May 22, 2014

Sorry this went ignored. Thanks for making the pull request.

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

3 participants