Can modal be scrollable?
You can also create a scrollable modal that allows scroll the modal body by adding . modal-dialog-scrollable to . modal-dialog .
How do I make a modal pop up scrollable?
Use the . modal-dialog-scrollable class to enable scrolling inside the modal.
How do I make modal not scrollable?
Approach: A simple solution to this problem is to set the value of the “overflow” property of the body element to “hidden” whenever the modal is opened, which disables the scroll on the selected element.