When the shadow view modal pops up, I still want my background div to remain scrollable. Is there a way to achieve this?
.main-wrapper {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
width: 100%;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
}
I specifically require the overflow-y property to be set to auto in order to utilize the react-infinite-scroller framework.
This code snippet represents HTML and CSS for a modal:
<div class="modal-backdrop"></div>
<div class="modal"
tabindex="-1"
role="dialog"
(click)="onClose()"
>
</div>
.modal {
overflow-x: hidden;
overflow-y: auto;
}