Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(modal): backdrop z-index when stacking modals
Browse files Browse the repository at this point in the history
Previously, backdrop wouldn't go over the previous open modal when a
modal is open on top of another.

Fixes #1653
Closes #1654
  • Loading branch information
chrisirhc authored and pkozlowski-opensource committed Jan 23, 2014
1 parent 8c89ccb commit 94a7f59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion template/modal/backdrop.html
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
<div class="modal-backdrop fade" ng-class="{in: animate}" ng-style="{'z-index': 1040 + index*10}"></div>
<div class="modal-backdrop fade"
ng-class="{in: animate}"
ng-style="{'z-index': 1040 + (index && 1 || 0) + index*10}"
></div>

0 comments on commit 94a7f59

Please sign in to comment.