在ui-select
中,用户必须多次制表才能移出ui选择输入。
我不知道为什么会这样,但是在检查后发现只有在通过tab
选择下拉值时才会发生。如果我通过click
或enter
选择它,则选项卡会平稳地切换到下一个元素。
这是html代码:
<ui-select ng-model="noPostData.selectedtype.id" theme="select2" on-select="getUserOptions()">
<ui-select-match placeholder="Select user type">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="obj.id as obj in usertype | filter: {name: $select.search} | limitTo: 200">
<div ng-bind-html="obj.name | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>