In my angular app, using bootstrap I have created a modal inside another modal. First, you will see the button for loading the first modal. Now you can see the scrolling effect. But if load the 2nd modal and close it, then the scrolling effect for the first modal is not working anymore. How can I fix that problem? See the example here
Here is the code sample, you can also see the above link:
<a data-toggle="modal" href="#myModal" class="btn btn-primary">Click Me</a>
<div class="modal" id="myModal">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Modal title</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div><div class="container"></div>
<div class="modal-body">
Scrollin effect for this modal is working at the beginning.
But if load the 2nd modal and close it, then this scrolling effect is not working anymore.
--------------------------------------------------------
Scrollin effect for this modal is working at the beginning.
But if load the 2nd modal and close it, then this scrolling effect is not working anymore.
--------------------------------------------------------
Scrollin effect for this modal is working at the beginning.
But if load the 2nd modal and close it, then this scrolling effect is not working anymore.
--------------------------------------------------------
Scrollin effect for this modal is working at the beginning.
But if load the 2nd modal and close it, then this scrolling effect is not working anymore.
--------------------------------------------------------
Scrollin effect for this modal is working at the beginning.
But if load the 2nd modal and close it, then this scrolling effect is not working anymore.
--------------------------------------------------------
Scrollin effect for this modal is working at the beginning.
But if load the 2nd modal and close it, then this scrolling effect is not working anymore.
--------------------------------------------------------
Scrollin effect for this modal is working at the beginning.
But if load the 2nd modal and close it, then this scrolling effect is not working anymore.
--------------------------------------------------------
Scrollin effect for this modal is working at the beginning.
But if load the 2nd modal and close it, then this scrolling effect is not working anymore.
--------------------------------------------------------
<a data-toggle="modal" href="#myModal2" class="btn btn-primary">Launch modal</a>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn">Close</a>
</div>
</div>
</div>
</div>
<div class="modal" id="myModal2" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">2nd Modal title</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div><div class="container"></div>
<div class="modal-body">
Content for the dialog / modal goes here.
Content for the dialog / modal goes here.
Content for the dialog / modal goes here.
Content for the dialog / modal goes here.
Content for the dialog / modal goes here.
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn">Close</a>
</div>
</div>
</div>
</div>