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

fix(modal): prevent doubleclick from closing multiple nested modals #6116

Closed

Conversation

jkoontz2010
Copy link

Hi,

In the normal Bootstrap library, double clicking on the backdrop of a nested modal results in just the nested modal closing. It waits for the modal-closing animation to complete, and once it is, the user can then click on the next backdrop to close the remaining modal.

The current Angular UI code doesn't do this because every time any backdrop is clicked, the top modal on the $modalStack is chosen for closing.

This PR prevents this functionality by simply adding a boolean value backdropClosing that, when true, will prevent the code from executing another modal close. Returning backdropClosing to false is unnecessary and won't affect the next modal close.

Closes #6061

@jkoontz2010 jkoontz2010 changed the title fix(modal): prevent doubleclick from closing multiple nested fix(modal): prevent doubleclick from closing multiple nested modals Jul 23, 2016
@icfantv
Copy link
Contributor

icfantv commented Jul 24, 2016

Closing as duplicate of #6104

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mutliple modals, double click closes two modals instead top.
2 participants