Open JuicyRibs opened 3 years ago
Can you provide a reproduction?
They stopped the repairs. I had to do it myself, in the same way, with a new version of typeScript. And fix these problems for everyone to use. add react hooks、vue3 example
npm i body-scroll-lock-upgrade
repair log,Refer to the releases page.
There's a delay after loading the page before
isActive
is loaded. I set theisActive
with a state calledisLoading
which is default as true but the scroll is not locked when the page loads but it is locked after about 500ms. In this code, whileDimmer
is already active, ScrollLock is not