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

Manual typing new items #1160

Closed
MichaelZelensky opened this issue Apr 24, 2013 · 1 comment
Closed

Manual typing new items #1160

MichaelZelensky opened this issue Apr 24, 2013 · 1 comment

Comments

@MichaelZelensky
Copy link

Hi! I want to contribute to this work. I used the plugin (jQuery) in one of my projects and extended it with a new functionality which allows to turn the select field into a container with manually added items. It looks like this:

  1. You add <select id="myselect"> element
  2. $('#myselect').chosen({type_only: true});
  3. You see the chosen widget on your resulting html page
  4. Start typing your search string in the widget
  5. Hit Enter when finised typing
  6. A new item appears in the widget, just like if you selected one option

Note, that in this mode the plugin doesn't have search results displaying and all options are ignored. This copies the interactivity of Tag field in SO 'ask question' form.

If you think that the plugin will benefit from this extention, I will commit and possibly continue with helping with other issues.

Thanks!

@pfiller
Copy link
Contributor

pfiller commented Apr 24, 2013

Thanks @MichaelZelensky. There are already a few pull requests that have attempted to address this. We're hoping to evaluate them and move forward with getting one into the repo. Feel free to look through and weigh in on your favorite.

You can also take a look at #5 - where a lot of people are asking for this.

@pfiller pfiller closed this as completed Apr 24, 2013
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