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

Scroll only works on second click #44

Open
DennisKraaijeveld opened this issue Oct 5, 2021 · 2 comments
Open

Scroll only works on second click #44

DennisKraaijeveld opened this issue Oct 5, 2021 · 2 comments

Comments

@DennisKraaijeveld
Copy link

Hi!

I use this plugin on a FAQ page with on the top of the page a row of anchor links to different sections of the page. But when I click this anchor link, it jumps, without smooth scroll animation, it instantly jumps to the correct section. When I scroll back up and use the anchor link again, the scroll animation is working.

Is there something wrong with my component?

 <p className="tracking-widest text-mainPink-500">
                                    <AnchorLink
                                      to={`/veelgestelde-vragen/#${slice2.primary.title.text}`}
                                      title={slice2.primary.title.text}
                                    >
                                      {slice2.primary.title.text}
                                    </AnchorLink>
                                  </p>
@doublejosh
Copy link

Same. This plugin is consistently broken on the first click everywhere I've used it.

@hasanshafiq29
Copy link

Same here, any solution?

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