Bootstrap - modal sometimes breaks scrolling

When the page loads, the modal mod is immediately displayed. However, about half the time it is impossible to scroll. I can see the scrollbar on the side of the window, but it doesn't allow scrolling. Also, scaling the window in 150%

allows scrolling to work again.

How can I do this so that the user can scroll up and down the modal? I am using jQuery.

+3


source to share


1 answer


Modals tend to remove the scrollbar and mask your page eesize due to the fact that when you load a modal, you usually overlay body elements that keep and scroll, forcing the body or screen width to be adjusted.



0


source







All Articles