Angular JS:当选择其他下拉选项时,如何关注下拉列表

时间:2018-06-08 08:37:16

标签: javascript angularjs drop-down-menu focus

我有2个下拉菜单。 我想要两个下拉列表的值,如果我从1下拉选择值,我想重点关注第二个下拉菜单告诉用户他们需要选择第二个下拉值来完成这个过程

    // vm-tags.directive
div.acp-rd__search__tags
    .row
        .col-md-6
            ui-select(
                ng-model="viewmodel.filters.TagName"
                on-select="FilterController.on.uiSelectChange($item, $model, 'TagName')"
                ng-disabled="bindingIncomplete"
            )
                ui-select-match(
                    allow-clear="true"
                    placeholder="Tag name..."
                )
                    | {{$select.selected.name}}
                ui-select-choices(
                    repeat="tag in IndexController.data.tags.index | filter: $select.search"
                )
                    | {{tag.name|| ' '}}
        .col-md-6
            ui-select(
                ng-model="viewmodel.filters.TagValue"
                ng-disabled="!viewmodel.filters.TagName"
                on-select="FilterController.on.uiSelectChange($item, $model, 'TagValue')"
            )
                ui-select-match(
                    allow-clear="true"
                    placeholder="Tag value..."
                )
                    | {{$select.selected}}
                ui-select-choices(
                    repeat="value in viewmodel.filters.TagName.TagValues | filter: $select.search | orderBy"
                )
                    span(ng-if="value") {{ value }}
                    span(ng-if="!value")
                        em blank
// / vm-tags.directive

0 个答案:

没有答案