Dismiss
Announcing Stack Overflow Documentation

We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

I am using ui-select(version - 0.11.2), my HTML code follows:

<ui-select ng-model="staff.selected" ng-disabled="disabled" reset-search-input="false" multiple>
    <ui-select-match placeholder="Staff">{{$item.name}}</ui-select-match>
    <ui-select-choices repeat="staff in staffs" refresh="refreshStaff($select.search)" refresh-delay="0">
        <div ng-bind-html="name | highlight: $select.search"></div>
    </ui-select-choices>
</ui-select>

Here I am using multiple to select multi options. After I searched for query on type it's remains showing. How can I shouldn't show that?

JS code

$scope.refreshStaff = function(name) {
  Staffs.query($scope.queryCriteria).then(function(response) {
    return response.data;
  });
}
share|improve this question
up vote 1 down vote accepted
<ui-select ... reset-search-input="true">
share|improve this answer
    
And explanation for why this works would improve your answer. – ryanyuyu Jun 22 '15 at 14:59
    
Thank you Timur for your answer – Donthamsetti v bhadrarao Jun 26 '15 at 7:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.