Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Select option with TAB key#258

Merged
brianreavis merged 1 commit into
selectize:masterfrom
o0x2a:patch-1
Feb 10, 2014
Merged

Select option with TAB key#258
brianreavis merged 1 commit into
selectize:masterfrom
o0x2a:patch-1

Conversation

@o0x2a

@o0x2a o0x2a commented Jan 20, 2014

Copy link
Copy Markdown
Contributor

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
Copy Markdown

+1 for better UX

@johannesnagl

Copy link
Copy Markdown

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

o0x2a commented Jan 21, 2014

Copy link
Copy Markdown
Contributor Author

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

@johannesnagl

Copy link
Copy Markdown

@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
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants