UI-Select reset-search-input does not work

angularjs, ui-select

Solution

You can set it at the global level using the uiSelectConfig constant like:

app.config(function(uiSelectConfig) {
  uiSelectConfig.resetSearchInput = true;
});

It worked for me.

Problem

Please see my code below, when a choice is select from an input by typing something in i.e "Fr" and all the countries starting with France would appear, however after the input is selected the input field does not get cleared ``` <ui-select multiple ng-model="quote.targetLanguage" reset-search-input="true" theme="bootstrap" ng-disabled="disabled" close-on-select="false" style="width: 800px;"> <ui-select-match placeholder="Select person..."> {{$item.language}} </ui-select-match> <ui-select-choices repeat="lang in controllersData.languages | filter: $select.search"> <div ng-bind-html="lang.language | highlight: $select.search"></div> </ui-select-choices> </ui-select> ```

Original source