I have two modals that can be opened on the page. But they both have the same z-index, so I try to set a higher z-index for one of them:
zIndex: 950, doesn't work at all. I wonder maybe it is some deprecated or undocumented option because the off. docs don't mention it.
Update: I have found out that here
baseIndex = zIndex + this._getVisibleCount();
_getVisibleCount() returns 0 even though one modal is already open. That's my problem.