Angular ui-select 仅突出显示列表中的第一个选项
Angular ui-select only highlighting first choice in list
我在应用程序上以不同的方式使用 ui-select quite。 select 工作,但都有一个共同点,即只有最重要的选择会被突出显示。如果列表重新打开,我真的很想看到 selected 项目突出显示。除此之外,有没有办法一起关闭突出显示?
这是一个示例:
<ui-select reset-search-input="false"
id="entryGenModuleType"
name="entryGenModuleType"
ng-model="deForm.moduleTypeId" theme="select2" append-to-body="true"
class="holdSelect"
ng-change="filterSavedEntries()"
ng-disabled=""
title="Select Module Type">
<ui-select-match allow-clear="true"
placeholder="">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat=" type in selectionData.moduleTypes | orderBy:'name' | filter: { name: $select.search } ">
<span ng-bind-html="type.name"></span>
</ui-select-choices>
有同样的问题。
删除属性 reset-search-input="false"
对我有帮助
我在应用程序上以不同的方式使用 ui-select quite。 select 工作,但都有一个共同点,即只有最重要的选择会被突出显示。如果列表重新打开,我真的很想看到 selected 项目突出显示。除此之外,有没有办法一起关闭突出显示? 这是一个示例:
<ui-select reset-search-input="false"
id="entryGenModuleType"
name="entryGenModuleType"
ng-model="deForm.moduleTypeId" theme="select2" append-to-body="true"
class="holdSelect"
ng-change="filterSavedEntries()"
ng-disabled=""
title="Select Module Type">
<ui-select-match allow-clear="true"
placeholder="">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat=" type in selectionData.moduleTypes | orderBy:'name' | filter: { name: $select.search } ">
<span ng-bind-html="type.name"></span>
</ui-select-choices>
有同样的问题。
删除属性 reset-search-input="false"
对我有帮助