I have a problem with this, that I can't find a solution yet. I have two modals on my code, one of them make this when it opens:
<body class="modal-open" id="page-top" style="padding-right: 15px; overflow: hidden;" data-bs-padding-right="15px" data-bs-overflow="hidden">
But, the other add only this when it opens:
<body class="modal-open" id="page-top" style="overflow: hidden; padding-right: 15px;">
The problem is, when it closes, the first version don't remove the overflow: hidden
, and because this, the scroll bar stay hidden.
Very crazy, sorry for my comment about the problem, but it's a strange behaviour.