-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Modal element is not removed if using animateProvider.classNameFilter #3647
Comments
Thank you for reporting this. I was afraid I missed something. This will be fixed soon |
Is there a workaround for this for now? (besides animation: false on the $modal.open) |
+1 |
With angular 1.4.0 this is not working anymore!
|
@germanger FYI; As of this moment, a stable release of Angular 1.4 hasn't been released yet and thus UI Bootstrap doesn't support use of Angular 1.4 yet. |
+1 (with Angular 1.4) |
The only workaround for angular 1.4 that I could find, is to set animation: false when creating new dialog. Or use $modalProvider.options.animation = false; |
Is it possible to set that ( |
@rvanbaalen you're wrong about the official Angular 1.4 release. It was tagged 6 days ago (one day prior to your comment) ~ https://github.com/angular/angular.js/releases/tag/v1.4.0 |
@germanger yes it is: $modal.open({ |
@philBrown ah well.. Cant always be right 😉 thanks for correcting me. |
Resolved in #3895 Working Plunker: http://plnkr.co/edit/4gMUSzeLv65atc0flHFx?p=preview |
@char0n actually it's $modal.open({
animation: true|false
}); Not very consistent though; the ui.bootstrap.progressbar does use |
Yep, thanks for correcting me. On Tue, Jul 7, 2015 at 1:15 PM, Sjors Provoost [email protected]
Vladimír Gorej | CodeScale s.r.o. |
This looks like it has been fixed according to #3895 - closing as resolved. |
If there is a
$animateProvider.classNameFilter(/whitelistedelement/)
then https://github.com/angular-ui/bootstrap/blob/master/src/modal/modal.js#L231 is never run (looks like the event is never triggered). As a result, the modal window is faded out, but never removed from the dom. It stays in the foreground with 0 opacity so that nothing on the page can be clicked.Here's a plunk: http://plnkr.co/edit/hPMd9R2jsRzSivVxTUNg?p=preview
As you can see, you can open and close the modal only once.
This problem appeared in 0.13. It was working in 0.12 and 0.11. Not sure why, though.
Temporary fix: use
$animateProvider.classNameFilter(/whitelistedelement|modal/)
.The text was updated successfully, but these errors were encountered: