Lib link : https://github.com/angular-ui/ui-select
Is there any way to Block the user edit in multiSelect ?
I want to allow user to only clear the previously selected data , But how to block him from entering any free text in the ui-select
http://plnkr.co/edit/juqoNOt1z1Gb349XabQ2?p=preview
<ui-select multiple ng-model="multipleDemo.colors" theme="select2" ng-disabled="disabled" style="width: 300px;">
<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>
Referring above code and plunker , Currently in the ui-select "Blue , Red " color's are selected and user can clear those values, but if user tries to enter some text in the ui select its allowing for modification ,
"but my requirement is to block the user from entering such texts in that field."
Thanks in advance.