Needs review
Project:
Chosen
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2013 at 17:28 UTC
Updated:
3 Jul 2019 at 14:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidSince this hasn't landed in the main repo yet, I'm going to go ahead and mark this as postponed. Don't feel you have to do anything based on this issue, but it will be a nice place to share patches for those of us using the fork.
Comment #2
dave reidComment #3
galaxor commentedHi. I was on a plane and didn't see that there had been other work on this. I did a quick little select_or_other integration that isn't quite as integrated as the other patch, but was quick to implement. If you just want *some* select_or_other integration, this is a small change that could go in while the rest of the work is done on the other branch.
Comment #4
dave reid@galaxor: Can you please file a new issue for your patch? That's more about allow Chosen to be selected for select_or_other widgets. The patch I've provided is for the create new option feature only.
Comment #5
Garrett Albright commentedDoes the current koenpunt fork work for anyone? After (figuring out how to build the damn thing and) installing it, it doesn't seem to want to put any options in the drop-down - it just works like a text field. Did the options change or something?
Comment #6
dave reidRe-rolled against 7.x-2.0-beta1.
Comment #7
dave reidRevised patches against 7.x-2.0-beta1 and 7.x-2.x-dev.
Comment #8
dave reidRe-rolled for 7.x-2.x again and fixed liszt:updated should be chosen:updated with the latest library.
Comment #9
dave reidComment #10
rv0 commentedWorks fine here, thanks a lot!
@Garrett Albright
You don't have to build it, there's releases:
https://github.com/koenpunt/chosen/releases
Comment #11
rv0 commentedOne small comment..
I hate the fact that it shows the "other" textbox, I'd rather have it show the option in the select itself.
I quickhacked this in by changing:
to:
Basically, removes triggering the change event and adds the option to the select.
Comment #12
Mołot commented@rv0 Any chance you can incorporate your change into a patch file? I'd "review" it, then, and hopefully we could get it incorporated in next version.
Comment #13
rv0 commented@Mołot: sure, but I was thinking people would prefer it configurable.
In any case, we switched to Select2.js for our usecase because it allows adding elements out of the box, and just by pressing enter (no special clicks required).
Patch in attach.
Comment #14
markdcHas there been any progress on this? Has Chosen come a little further in 3 years? I don't want a 'click for other' method. I want to type and press return to create new.
I've unsuccessfully tried to get this functionality with other modules (Select2, Select2Widget, Autocomplete Deluxe) and several combinations of patches — nothing works. But as Chosen is my Select UI of choice, I'd prefer to stay with it anyway.
Also, I don't know if it's because I'm using OG Vocab... That probably complicates things, huh?
Comment #15
ohmdesbois commented+1