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中移除。 我已经检查了许多关于引导模态的背景的其他问题,但我似乎无法弄清楚出了什么问题。
这显然是由于一个错误。 AngularUI尚不支持Angular 1.4。一旦
http://github.com/angular-ui/bootstrap/issues/3620解决了这将工作。
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |