I use UI-Select , I noticed that clicking any of the tags makes them blue, which has nothing to do with what I would like to do. I would like them to be deleted by clicking. After inspection, I noticed an "x" that works as follows:
ng-click="$selectMultiple.removeChoice($index)"
After doing some digging, I found the template in which it was run, this is "match-multiple.tpl.html". I copied ng-click to the input, making it next.
<span class="ui-select-match"> <span ng-repeat="$item in $select.selected"> <span class="ui-select-match-item btn btn-default btn-xs" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.removeChoice($index)" ng-class="{'btn-primary':$selectMultiple.activeMatchIndex === $index, 'select-locked':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"> <span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)"> ×</span> <span uis-transclude-append></span> </span> </span> </span>
This violated the tag system (see image) 
EDIT - I tried the following, the error disappeared, but the click does nothing.
ng-click="$selectMultiple.activeMatchIndex.removeChoice($index)"
How can I attach ng-cick to a tag and not to "X"?
source share