Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isActive is not delayed on load #84

Open
JuicyRibs opened this issue Feb 5, 2021 · 2 comments
Open

isActive is not delayed on load #84

JuicyRibs opened this issue Feb 5, 2021 · 2 comments

Comments

@JuicyRibs
Copy link

JuicyRibs commented Feb 5, 2021

There's a delay after loading the page before isActive is loaded. I set the isActive with a state called isLoading 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, while Dimmer is already active, ScrollLock is not

      <ScrollLock isActive={props.isLoading} />
      <Dimmer active={props.isLoading}>
        <Loader>Loading</Loader>
      </Dimmer>```
@jossmac
Copy link
Owner

jossmac commented Apr 22, 2022

Can you provide a reproduction?

@rick-liruixin
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants