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

tabindex="-1" attribute prevents focus and type on form fields #647

Closed
barlas opened this issue Sep 17, 2014 · 2 comments
Closed

tabindex="-1" attribute prevents focus and type on form fields #647

barlas opened this issue Sep 17, 2014 · 2 comments

Comments

@barlas
Copy link

barlas commented Sep 17, 2014

I've a form which works fine appers above the colorbox modal window and i can show it easly with z-index. When user opens the modal window, form submit and etc are usable but fields can not be focusable for typing.

I know logic is silly; modal overlaps with and modal form (modalception:) but i think this need to be fixed. I've prepared a sample: http://jsfiddle.net/4g3426j2/

I've detect when i remove tabindex="-1" attribute from colorbox and everything works fine, is there a healthy way to fix this without touching the plugins javascript or can we remove tabindex from colorbox, what is consequences:?

Here is question's link: http://stackoverflow.com/questions/25883683/colorboxs-tabindex-1-attribute-prevents-focus-and-type-on-form-fields

@aik099
Copy link

aik099 commented Sep 17, 2014

Try setting trapFocus to false in ColorBox settings. That should allow using TAB to work on form that is not within ColorBox.

@barlas
Copy link
Author

barlas commented Sep 17, 2014

thanks @aik099 that worked fine, http://jsfiddle.net/4g3426j2/1/

@barlas barlas closed this as completed Sep 17, 2014
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

No branches or pull requests

2 participants