-
Notifications
You must be signed in to change notification settings - Fork 592
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
User add item & multi-select #39
Comments
The ability to add custom items to a multi-select is a definite possibility - that would be fairly simple to implement. Thanks for the suggestion. |
@jshjohnson if you are about to implement this feature can I also ask to apply this also for single select option tag? It would be great help on something I'm currently working... |
@jshjohnson I would like to give you some input here, so for the single value: http://codepen.io/dgt41/pen/xRbpwK/ And for the multiple values: http://codepen.io/dgt41/pen/RoNxro And couple remarks here:
Hope this is somehow helpful |
@jshjohnson any ETA here? |
@dgt41 I'll be looking at this as soon as I can - very busy this week though. I'm happy to review pull requests. |
Just to give an update, I've begun work on this within a feature branch |
@jshjohnson I did some testing on the feature branch, so for the single the item is added but is not active: For the multiple I do get some strange behaviour, adding a new item will also add another (already existing) item. I hope I can find some time debugging and contributing some code |
FYI, I've a pushed a PR (#79) to help complete this feature. |
Thanks to the PR from @StephaneTrebel, we're close to getting this feature through the door. Things left to do:
|
FYI, I've done some tests and I think that :
is ok. I have not tested the groups since I don't use them yet. If I do I'll give a heads up :) |
Sorry, I do not understand how I do it. |
@erikskar This feature is still in development (in the |
Can we help? |
Hi @rstacruz - sure! I think this feature is really close to completion. It just needs some unit tests + some investigation into option groups (i.e what should happen if you have a groups of options and you add a new option). |
@jshjohnson any progress here? Thanks |
News... |
There is still one issue here if you have a select box with groups - added items do not appear in the dropdown. I think in this situation a group should be added titled 'Miscellaneous' with custom items within it. I don't think this is a blocker though so i've merged this into version 2.8.0. |
Sorry guys, I can not find any code for this feature. 😣 |
@zhanglun This feature is no longer being actively worked on. To enable it requires a more fundamental refactor of Choices (which is in the pipeline) |
@jshjohnson |
I am curious if this issue will ever be resolved. It is 2019, and the issue was raised in 2016. If there is a new version of Choices coming out, when will it release? Also, I would suggest that until then this be listed as a limitation of the tool on the main page. I have wasted a significant amount of time integrating Choices.js into our UI, before discovering that there is no way to provide a list of tags (with -select- tag) and additionally also allow the user to add their own tags. Maybe other individuals can be saved from this frustration... |
Wow. I thought that the Choices have this feature. I need it too. |
The same situation.. |
I think I want to give a shot at making this work. I also want to use it for a project. |
For anyone looking for a good alternative that supports this feature see https://github.com/yairEO/tagify |
Works neat! |
Easy temporary workaround for anyone in need It's not perfect and I don't actually recommend it but if you're in need/in a hurry - it's something. |
^^ Ditto, quite surprising. |
I had found myself in the same situation. Check out the fix I made. It's been working fine in production since July. |
I would love to see this as an option. |
Still an issue in the end of 2022? OMG... Today I discovered that this library does not support this function. 😢 |
still not possible ? ;s |
I know this is really old; however, I did come up with a solution today for my needs that was very simple. I needed a way for a user to type a client name and if our database had a match the user can select the client. If there is not a match, the user can choose what they've searched for as the client. |
Is it possible to mix multi-select with the users ability to add custom items? Or alternatively, give the text field some predefined suggestions in the style of the multi-select?
I've tried setting the
choices
option when targeting a text field, but it doesn't seem to work.The text was updated successfully, but these errors were encountered: