Stacked popup on data-handler + data-confirm

I found a bug, or maybe something is not working properly, but, when i open a popup with data-handle, then trying to open another data-handle with data-request-confirm, then i got “stuck” with wrongly stacked first modal.

steps to reproduce:

click on first data-handle
: results to open modal (OK)

click on button with data-request-confirm that opens data-handle
: results to open confirmation, send first modal to backward and shows preloadning waiting to confirm action… (OK)

click on cancel button
: results to close confirm modal, hides preloading and first modal was stuck on “stacking” position

Hi @snipi

For complex cases like this, it is best to submit a Pull Request to the test plugin that demonstrates the issue: