AngularJS ui-select: option not added when typed fully -
i using angular ui-select , want allow user select option using auto-complete, allow them type in custom options.
i've configured control tagging enabled , no tagging labels follows:
<ui-select multiple tagging tagging-label="false" ng-model="colors" theme="bootstrap" style="width: 300px;" title="choose color"> <ui-select-match placeholder="select colors...">{{$item}}</ui-select-match> <ui-select-choices repeat="color in availablecolors | filter:$select.search"> {{color}} </ui-select-choices> </ui-select>
here's example plunkr: http://plnkr.co/edit/yw7wlozcds1xios6usns?p=preview
the problem when type in word exists in available colors , press enter, option not become selected.
in plunkr, can see if type blue , press enter.
where going wrong?
this appears known bug related using tagging-label="false"
. works correctly when removing option, or perhaps can find workaround.
Comments
Post a Comment