当将Angular-formly与ui-select和bootstrap主题一起使用时,列表中的所选项目不会更改为突出显示。第一项保持突出显示。您可以从Angular Formly网站获取的示例中看到这一点。在状态字段中,阿拉巴马州默认情况下突出显示,如果您选择另一个字段,则该字段仍然突出显示。突出显示应更改为所选字段。
这是我正在使用的模板。
<ui-select ng-model="model[options.key]"
theme="bootstrap"
ng-required="{{to.required}}"
ng-disabled="{{to.disabled}}"
reset-search-input="false">
<ui-select-match placeholder="{{to.placeholder}}">
{{$select.selected[to.labelProp || \'name\']}}
</ui-select-match>
<ui-select-choices
group-by="to.groupBy"
repeat="option[to.valueProp || \'value\'] as option in to.options | filter: $select.search">
<div ng-bind-html="option[to.labelProp || \'name\'] | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
有没有人想出一种方法来突出显示列表中的实际选定项目?