我有一个带有uib-tabs的UI Bootstrap模式。当我打开模态时,第一个选项卡是“以浏览器为中心”,用蓝色边框包围,如下所示:
我正在使用:
这是一个傻瓜: https://plnkr.co/edit/HjKjHegAQ1ReY39lSD2V?p=preview
js plunkr的代码:
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) {
}]);
plunkr的html:
<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>
有关如何移除此蓝色边框的任何线索?
答案 0 :(得分:2)
呃......我更新到bootstrap ui 2.5.0
(从2.2.0开始)这个问题已解决(没有蓝色边框)
似乎已在bootstrap ui 2.3.1
https://github.com/angular-ui/bootstrap/blob/master/CHANGELOG.md
模态:在打开时恢复焦点行为(8a4f625),关闭#6295