-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Selecting an item not in the list #1409
Comments
See wiki: https://github.com/angular-ui/ui-select/wiki/ui-select
Example: https://github.com/angular-ui/ui-select/blob/master/examples/demo-tagging.html |
I'm getting a bunch of errors with these examples... One is if I don't even type anything and maybe a selection from the dropdown then switch the selection I get an error:
code:
When I start typing, another error appears:
|
Did you end up getting this to work? Looking at a non-multiple select object that lets me dynamically add values to the list. Seems similar here? |
@user378230 I used the latest version in this plnkr but without success, do you have any idea what's wrong? |
Using the latest (1.4.9 angular, 1.14.9 ui-select) with no luck. My tagging function is not even being called. |
Guess tagging with single select isn't currently supported. PRs would be welcome I'm sure... |
Using |
As a workaround you can use |
Have to say that's not a workaround, rather a different feature set. "multiple" changes the UI elements & UX. I implemented this by using a custom filter. My list of options has an element with ID: new. The value / text for it is changed by my filter.
Not the best code, but worked. |
Seemed to works for me setting tagging-label="false" but causes other problems |
I encountered the same issue, my tagging function is not called, PR would be welcome… |
#1727) * When in tagging mode, not multiple (taggingLabel === false), selecting an item by click was instead calling taggingFunc(). This fix checks for this manual selection, whether ctrl.search is filled or not and acts accordingly. Same changes mad in #1439 that were mysteriously lost. Fixes #1357, #1496 and #1409 * Simplification to combine ctrl.clickTriggeredSelect in one assignment
…orks Tagging in single select is not working which has been testing in latest version of angular. Here, I've just copied working version of code from uiSelectMultiple directive and removed some code which causes the problem. All the test has been passed. Examples are working fine Closes angular-ui#1409, angular-ui#890
…orks Tagging in single select is not working which has been testing in latest version of angular. Here, I've just copied working version of code from uiSelectMultiple directive and removed some code which causes the problem. All the test has been passed. Examples are working fine Closes angular-ui#1409, angular-ui#890
…orks Tagging in single select is not working which has been testing in latest version of angular. Here, I've just copied working version of code from uiSelectMultiple directive and removed some code which causes the problem. All the test has been passed. Examples are working fine Closes angular-ui#1409, angular-ui#890
@darioml i don't understand how i can use you code. where i must call the filter? can you make me an example? |
how can i select (or add) an item that is not in the list? I.e. when a user starts typing and filters to the point where there isnt a match, an option to create a new entry appears.
The text was updated successfully, but these errors were encountered: