【发布时间】:2017-06-30 18:23:16
【问题描述】:
我在一个应用程序上以不同的方式使用了 ui-select。选择有效,但都有一个共同点,即只突出显示最佳选择。如果重新打开列表,我真的很想看到突出显示的所选项目。除此之外,有没有办法一起关闭突出显示? 这是一个示例:
<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>
【问题讨论】:
-
没有人能告诉我为什么突出显示不能正常工作?
-
我注意到,如果我使用箭头键然后使用“Enter”选择一个选项,则所选选项会突出显示。如果我选择使用鼠标单击,则不会,其中顶部选项始终突出显示。有什么帮助吗?