Angular ui-select需要点击两次才能输入输入

时间:2018-05-21 06:00:57

标签: ui-select angular-ui-select

对于角度来说相当新,我有一个ui-select,它在输入任何东西时从远程服务获取数据,显示下拉列表中的相关项目。这是一个单选的下拉列表。 问题是输入字段需要两次单击才能打开。在第一次单击时,该字段将被聚焦,第二次单击时,将显示光标以进行输入。

无法得到造成问题的原因。

     <ui-select  ng-model="page.model.form.relatedItem"  theme="bootstrap">
          <ui-select-match placeholder="Search ...">
             <span ng-if="$select.selected.name" nbind="$select.selected.name"></span>
             <span ng-if="!$select.selected.name" ng-bind="page.model.form.relatedItem.name"></span>
          </ui-select-match>
         <ui-select-choices refresh="page.getRelatedItemList($select.search)" refresh-delay="0" group-by="'group'"  repeat="item in page.itemArray | filter: $select.search">
           <span ng-bind-html="item.name | highlight: $select.search"></span>
         </ui-select-choices>
    </ui-select>

感谢您的帮助。

0 个答案:

没有答案