2016-11-19 26 views
0

我的網站上有一個角度ui-select下拉菜單。角度ui選擇放置在其他輸入fiedls(文本框)中。事實上,tabindex在ui-select上設置,它不起作用。 ui-select在表單中作爲第四個元素,但是在標記輸入字段時,它將直接從第三個元素中選擇第五個元素。任何人都可以告訴我如何解決這個問題。我GOOGLE了它,但無法找到令人滿意的答案。 與UI選擇HTML代碼如下無法在角度ui-選擇上設置tabindex

<ui-select class="selecter-basic" name="Subject" tabindex="4" ng-focus="setFocus(4)" ng-class="{'warning': contactUsForm.$submitted && contactUsForm.Subject.$error.required }" ng-model="contactRequest.Subject" id="selectSubject" required> 
 
    <ui-select-match placeholder="{{resourcesData.ContactRequestForm_SelectedValue_Default_Subject}}">{{$select.selected.Value}}</ui-select-match> 
 
    <ui-select-choices repeat="subject.Key as subject in subjectList | filter: $select.search" value="{{$select.selected.Key}}"> 
 
    <span ng-bind-html="subject.Value | highlight: $select.search"></span> 
 
    </ui-select-choices> 
 
</ui-select>

以下是如何與UI選擇在瀏覽器中 enter image description here

回答

0

setFocus(4)自定義函數呈現?如果是這樣,請更改在UI選擇本身中實現的ng-focusfocus-on

+0

setFocus是一個內置函數angular-ui-select。我已經改變了它的重點和測試。但仍然跳過下拉列表。 –