-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Version 0.13 - modal does not close correctly #3873
Comments
Disabling animation on a modal eliminates the bug...thus guessing it's in here: No console output... Side note (although this may be a result of CSS I added via !important) - the whole body flashes black with animation: false. |
Can you create a reproduction with Plunker? |
I got this issue too after migrate to angular 1.4 unfortunatly I can't reproduce on plkr : http://plnkr.co/edit/xofiwx?p=preview |
sorry I didn't read others issues, I suppose this is more complicated than just an angular upgrade |
Since there is no version specified in this issue, I use angular 1.4. This is what I found : I've updated http://plnkr.co/edit/xofiwx?p=preview to make backdrop not removed in ui-bootstrap we use the event the actual doc for Hope this help to fix. |
Yes, thank you esion, wish I caught this 20 minutes ago. Made a sad plunker which doesn't duplicate it, http://plnkr.co/edit/NCmCk722weDma3Mj2b9m?p=preview. |
However removing ng-animate doesn't seem to resolve it for me, while it does on your plunker... |
Ah got it - ngMaterial will also conflict and produce this issue. |
I see ui-router-anim requires ngAnimate. Edit: material requires also ngAnimate |
So I think this the same discussion as in #3633 so this one should be closed |
If you look at Daniel's plunker, the behavior is different. |
He said it has been resolved by adding ngAnimate Without it, ui-bootstrap has no idea when remove modal from DOM. So it removes it asap on 1.3. It's just a "bug" in documentation not in code. In case of angular 1.4, BC breaks have been added arround ngAnimate, so the event used to remove backdrop and modal window from DOM is not triggered anymore see L.238 as I mentionned, this has been discussed here : #3633 (comment) (Obviously there is lot of mess in the issue :p and two "bugs") |
- supports Angular 1.4 Fixes angular-ui#3787 Fixes angular-ui#3806 Fixes angular-ui#3873 Closes angular-ui#3888
Should be fixed now via #3895 Above Plunker with fix: http://plnkr.co/edit/R8322USvwVICHy8wjM7Y?p=preview |
Thank you @chrisirhc, I found some bugs, i'll talk about it in PR |
Backdrop still remains and modal itself is still there, just with opacity of 0. Don't think this is a duplicate of #3633 . Does not occur with 0.12.
The text was updated successfully, but these errors were encountered: