角引导模态叶背景下开放 [英] Angular Bootstrap Modal leaves backdrop open

查看:146
本文介绍了角引导模态叶背景下开放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用AngularUI来引导组件在我的角1.4的应用程序集成,如情态动词。

I'm using AngularUI to integrate Bootstrap components in my Angular 1.4 app, such as Modals.

我打电话一个模式在我的控制器像这样:

I'm calling a Modal in my controller like so:

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

不幸的是,当我想通过关闭模态:

Unfortunately, when I want to close the Modal by using:

modalInstance.close();

模态本身自败,并且背景也消失了,但它不从DOM移除,因此它覆盖了整个页离开页面响应

The modal itself dissapears, and the backdrop also fades out, but it isn't removed from the DOM, so it overlays the whole page leaving the page unresponsive.

当我检查,我看到这样的:

When I inspect, I'm seeing this:

在对<一个文档的例子href=\"https://angular-ui.github.io/bootstrap/#/modal\">https://angular-ui.github.io/bootstrap/#/modal类模式开从身上取出整模式,背景从上接近DOM中删除。
为什么模态淡出,但没有背景从DOM在我的例子中删除?

In the example in the Documentation on https://angular-ui.github.io/bootstrap/#/modal The class modal-open is removed from body and the whole modal-backdropis removed from the DOM on close. Why is the Modal fading out but the backdrop not removed from the DOM in my example?

我已经签出了许多关于引导情态动词的背景下,其他的问题,但我似乎无法找出什么地方出了错。

I've checked out many of the other questions about the backdrop of bootstrap Modals but I can't seem to figure out what's going wrong.

推荐答案

这显然是由于一个错误。 AngularUI不支持尚未角1.4。一旦<一个href=\"http://github.com/angular-ui/bootstrap/issues/3620\">http://github.com/angular-ui/bootstrap/issues/3620解决这将正常工作。

This is apparently due to a bug. AngularUI doesn't support Angular 1.4 yet. Once http://github.com/angular-ui/bootstrap/issues/3620 is resolved this will work.

这篇关于角引导模态叶背景下开放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆