Answer the question
In order to leave comments, you need to log in
Bootstrap second scrollbar when opening modal window?
Hello, I have such a question... When opening a bootstrap modal window on the site, a second scroll bar appears. One scrolls the modal window, the second page of the site is hidden by the modal window. How to disable site scrolling?!
Answer the question
In order to leave comments, you need to log in
When a modal is opened, the body
class .modal-open
is attached to it, and its styles disable scrolling. Check for all styles, all scripts. If you have scrolling inside another element implemented, then disable it:
.modal-open .scroll-elem {
overflow: hidden;
}
This is done through the overflow property, you just need to find which block to apply it to.
htmlbook.ru/css/overflow
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question