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

Select option with TAB key #258

Merged
merged 1 commit into from
Feb 10, 2014
Merged

Select option with TAB key #258

merged 1 commit into from
Feb 10, 2014

Conversation

o0x2a
Copy link
Contributor

@o0x2a o0x2a commented Jan 20, 2014

A client asked me they want to able to select an option by pressing tab. I thought it would be nice if Selectize has this feature by default.

A client asked me they want to able to select an option by pressing tab. I thought it would be nice if Selectize has this feature by default.
@nicolasdular
Copy link

+1 for better UX

@johannesnagl
Copy link

Awesome, thx @Code-guru! We're currently migrating our app from select2 to selectize.js and the last remaining issue for me was the mentioned behavior!

@o0x2a
Copy link
Contributor Author

o0x2a commented Jan 21, 2014

@johannesnagl I'm happy to hear that it was useful :-)

@johannesnagl
Copy link

@Code-guru: yeah, your code was very useful, although @nicolas-dular & I do have a neat enhancement:

adding e.preventDefault(); to your if-statement prevents the focus to change to your next input. instead, the cursor stays within your select and you can select multiple options with multiple "tab" commands :)

@jasonhjohnson
Copy link

Hey guys, I'd like to use this code in my selectize.js implementation. How do I get this included in a minified version of the selectize.js 0.8.5?

Thanks,
J

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.

5 participants