加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

anglejs – Angular Bootstrap模态叶背景开放

发布时间:2020-12-17 08:16:41 所属栏目:安全 来源:网络整理
导读:我正在使用AngularUI在我的Angular 1.4应用程序中集成Bootstrap组件,如Modals。 我在控制器中打电话给Modal,就像这样: var modalInstance = $modal.open({ animation: true,templateUrl: '/static/templates/support-report-modal.html',controller: 'Mod
我正在使用AngularUI在我的Angular 1.4应用程序中集成Bootstrap组件,如Modals。

我在控制器中打电话给Modal,就像这样:

var modalInstance = $modal.open({
  animation: true,templateUrl: '/static/templates/support-report-modal.html',controller: 'ModalInstanceCtrl'
});

不幸的是,当我想通过使用以下方式关闭Modal:

modalInstance.close();

模式本身消失,背景也淡出,但它不会从DOM中删除,所以它覆盖整个页面,使页面无响应。

当我检查时,我看到:

在https://angular-ui.github.io/bootstrap/#/modal中的文档中的示例类modal-open从主体中删除,并且完整的模态背景从DOM中移除。
为什么Modal在我的例子中逐渐消失,但DOM中没有删除背景?

我已经检查了许多关于引导模态的背景的其他问题,但我似乎无法弄清楚出了什么问题。

这显然是由于一个错误。 AngularUI尚不支持Angular 1.4。一旦 http://github.com/angular-ui/bootstrap/issues/3620解决了这将工作。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读