- Can a modal be scrollable?
- How do I make my modal body scrollable?
- How do I make modal not scrollable?
Can a modal be scrollable?
Use the . modal-dialog-scrollable class to enable scrolling inside the modal.
How do I make my modal body scrollable?
Bootstrap 4.3 added new built-in scroll feature to modals. This makes only the modal-body content scroll if the size of the content would otherwise make the page scroll. To use it, just add the class modal-dialog-scrollable to the same div that has the modal-dialog class.
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.