bootstrap
bootstrap copied to clipboard
incorrect backdrop z-index when opening multiple modals with backdrop false
Bug description:
See plunker blow.
Notice that the first modal's backdrop set to static and the second modal's backdrop set to false.
It seems the first modal's backdrop have been brought to front and covered the first modal, thus becomes second modal's backdrop.
The backdrop belongs to the first modal, but the index used in the backdrop is the second modal's (topest) index, but second modal doesn't have backdrop. backdrop ngStyle:
{'z-index': 1040 + (index && 1 || 0) + index*10}
Set first modal's backdrop to truealso have the same problem, but modal can not be closed by click on the backdrop
Link to minimally-working plunker that reproduces the issue:
http://plnkr.co/edit/FP1sfJgsdY5SoHP6RFh5?p=preview
Version of Angular, UIBS, and Bootstrap
Angular: 1.5.11
UIBS: 2.4.0
Bootstrap: 3.3.7