Skip to content

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