UI Bootstrap 和带标签的模态:第一个标签以边框为焦点

UI Bootstrap and modal with tabs: the first tab is focused with a border

我有一个带有 uib-tabs 的 UI Bootstrap 模式。当我打开模式时,第一个选项卡 "browser-focused" 被蓝色边框包围,如下所示:

我正在使用:

这是一个 plunkr: https://plnkr.co/edit/HjKjHegAQ1ReY39lSD2V?p=preview

插件的js代码:

angular.module('fooApp', ['ui.bootstrap']);

angular.module("fooApp").controller("fooController", ["$scope", "$uibModal", function($scope, $uibModal) {

    $scope.openModal = function () {

        var modalScope = $scope.$new();

        var modalInstance = $uibModal.open({
            templateUrl: 'modal.html',
            controller: 'modalController',
            scope: modalScope,
            size: 'lg'
        });

        modalInstance.result.then(function (result) {
        }, null);
    };

}]);

angular.module("fooApp").controller("modalController", ["$scope", "$timeout", function($scope, $timeout) {

}]);

html 的 plunkr:

<div class="modal-body">
    <uib-tabset>
        <uib-tab select="ngGridFix()">
            <uib-tab-heading>
                <i class="glyphicon glyphicon-file" style="margin-right: 15px"></i>
                <strong>Foo</strong>
            </uib-tab-heading>

            <p>Foo</p>

        </uib-tab>
        <uib-tab select="ngGridFix()">
            <uib-tab-heading>
                <i class="glyphicon glyphicon-question-sign" style="margin-right: 15px"></i>
                <strong>Help</strong>
            </uib-tab-heading>

            <p>Help</p>
        </uib-tab>
    </uib-tabset>
</div>

关于如何删除这个蓝色边框的任何线索?

呃...我更新到 bootstrap ui 2.5.0(从 2.2.0 开始),这个问题解决了(没有蓝色边框)

它似乎已在 bootstrap ui 2.3.1

中修复

https://github.com/angular-ui/bootstrap/blob/master/CHANGELOG.md

modal: revert focus behavior on open(8a4f625), closes #6295