预先选择的项目未显示在ui-select-match值中

时间:2019-06-04 04:25:33

标签: angularjs

我在ui-select中使用LimitTo过滤器,其中下拉列表中有数百万个项目。因此预选项目在选择匹配中不可见

pre-selected item in dropdown is not populated, when reopen the window and item is not in filtered 100 items

Preselected item is populated when the item is in filtered 100 list.

when no item is selected

我使用了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>

0 个答案:

没有答案
相关问题