bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Mutliple modals, double click closes two modals instead top.

Open sponkrashin opened this issue 10 years ago • 6 comments

When there are two nested modals, i.e. one modal is shown from another, double click on backdrop of the top modal results in closing of both modals instead only top.

Problem is reproduced even if double click is done when cursor is above first modal. As in the attached image from plunker, need to click in selected area.

image

http://plnkr.co/edit/Fidgh0aBW6LMi9nUaetg

sponkrashin avatar Jun 29 '16 14:06 sponkrashin

@Advarius this is expected behavior because you have the modals configured to close when the backdrop is clicked. You can turn this off via the backdrop property.

icfantv avatar Jul 02 '16 22:07 icfantv

This is not expected behavior, because as I mentioned, first modal will be closed even if double click is above selected area on the screenshot. In other words, first click is on the backdrop of the top modal, but second click is on the content of the first modal. Why modal is closed when I click it's content?

P.S.: image New screenshot with better example. If you click in the selected area, which is above the content of first modal, first modal will also be closed.

sponkrashin avatar Jul 03 '16 06:07 sponkrashin

@advarius, ah, thank you for the better example. I'll flag for investigation.

icfantv avatar Jul 03 '16 14:07 icfantv

Hello, i'm facing the same issue. Both modals are simply taken out of its stack and it happens twice as there happen two click actions on backdrop.

daimoonis avatar Jul 19 '16 13:07 daimoonis

I didn't realize this, but this issue was corrected by #6104

jkoontz2010 avatar Jul 24 '16 05:07 jkoontz2010

Closing as fixed in master

wesleycho avatar Jul 24 '16 06:07 wesleycho