Questions tagged [bodyscrolllock]
4 questions
1
vote
0 answers
On open of React.-bootstrap Navbar dropdown, I want to prevent the body from scrolling
I am using Navbar and Nav from react-bootstrap. When I click on the hamburger, I want to prevent the body from scrolling when the dropdown opens.
I have tried using body-scroll-lock but am having a hard discovering which element to set as…
0
votes
2 answers
React body scroll lock issue on IOS
I'm literally fighting in finding a clean solution to the scroll issue in the IOS devices. In my App.js i've simply the background body and a modal with some contents. When the modal is shown i'd like to block the scroll in the background…

Tony
- 1
- 3
0
votes
1 answer
Requirejs lib not a function
I'm trying to use willmcpo/body-scroll-lock on my magento 2 site, but I don't think I'm including the body-scroll-lock lib correctly as it says:
TypeError: disableBodyScroll is not a function
Does anyone know what is the correct way to do this…

NoDachi
- 874
- 4
- 10
- 20
0
votes
1 answer
Sidr with bodyScrollLock scrolls page to top
I'm using Sidr (https://github.com/artberri/sidr) with bodyScrollLock (https://github.com/willmcpo/body-scroll-lock/). When I'm using bodyScrollLock without Sidr it works fine, but when using it with Sidr it jumps to the top of the page when I click…

Gavin
- 7,544
- 4
- 52
- 72