Issue description
Bumped onto a scenario where I need to show one Modal on top of another one and on click on second Modal(anywhere) the first Modal gets closed.
The reason for this is the Modal component attaches the click event to document instead of backdrop element.
- version
#3.1.0
- components:
Modal
Steps to reproduce issue
- Open a Modal
- Have a button in the Modal that will open Another Modal
- Click anywhere in the Second Modal (opened on top of the first one).
CodePen: http://codepen.io/anon/pen/amdaGw
Note:
In my case the first Modal gets closed and the second Modal becomes un-responsive. However I couldn't reproduce this in codepen.
EDIT: Removed an error screenshot. Could be based on my usage.
Issue description
Bumped onto a scenario where I need to show one Modal on top of another one and on click on second Modal(anywhere) the first Modal gets closed.
The reason for this is the Modal component attaches the click event to document instead of backdrop element.
#3.1.0ModalSteps to reproduce issue
CodePen: http://codepen.io/anon/pen/amdaGw
Note:
In my case the first Modal gets closed and the second Modal becomes un-responsive. However I couldn't reproduce this in codepen.
EDIT: Removed an error screenshot. Could be based on my usage.