---
title: "First modal scroll hiding when second modal is closed"  
description: "First modal scroll hiding when second modal is closed"  
author: "Sunil Singh"  
published: 2017-12-07  
updated: 2017-12-10  
canonical: https://www.mindstick.com/forum/34382/first-modal-scroll-hiding-when-second-modal-is-closed  
category: "bootstrap"  
tags: ["jquery", "html", "bootstrap", "css"]  
reading_time: 1 minute  

---

# First modal scroll hiding when second modal is closed

When using two modals of [bootstrap](https://www.mindstick.com/articles/1555/image-viewer-using-bootstrap-carousel) on [close](https://yourviews.mindstick.com/story/1687/rubbing-hands-close-up-benefits) of [second](https://answers.mindstick.com/qa/41761/how-did-the-second-industrial-revolution-influence-women-s-roles-in-society) [modal](https://www.mindstick.com/interview/660/explain-modal-dialog-box) the scroll of the first modal is not working .

this is my [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii)

```
<div class="modal fade" id="dashboardModal" aria-hidden="true" data-backdrop="static" data-keyboard="false" role="dialog">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title" id="modalTitle"></h4>
            </div>
    </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div>
```

\

## Replies

### Reply by Manish Kumar

add css property as shown in following code

```
<div class="modal fade" id="dashboardModal" style="overflow:auto" aria-hidden="true" data-backdrop="static" data-keyboard="false" role="dialog">
```

Hope it helps you..


---

Original Source: https://www.mindstick.com/forum/34382/first-modal-scroll-hiding-when-second-modal-is-closed

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
