我在ui-select中使用LimitTo过滤器,其中下拉列表中有数百万个项目。因此预选项目在选择匹配中不可见
Preselected item is populated when the item is in filtered 100 list.
我使用了remove-selected =“ false”但没有用。 有人可以帮我吗?
我的代码是
<div class="form-group" id="locations-named-list">
<label translate="yes">NamedList</label>
<ui-select ng-model="selectedNamedList.name" theme="bootstrap" ui-select-no-animate
on-select="updateSelectedNamedList($item)">
<ui-select-match>{{$select.selected.name}}</ui-select-match>
<ui-select-choices style="max-height: 140px !important;" repeat="t.name as t in namedLists | propsFilter: {name: $select.search} | limitTo: 100" position="down">
<div ng-bind-html="t.name | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
</div>