alvarotrigo / alvarotrigo/react-fullpage

Not ending up on the first section after Next.js page transition

未关闭
#327 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
JavaScript
星标
1.3k
派生
172
PR 合并指标
30 天内没有已合并 PR

描述

### Description
Hello! I recently upgraded to v4 when I noticed this issue, the bug is not in v3.

I have multiple pages in Next.js with different fullpage sections, when doing a page transition I'm not always ending up on the first section.

https://user-images.githubusercontent.com/1552194/168397655-5cb7a63b-3103-4372-8e43-aaced4cd0651.mov

### Reproduction
https://codesandbox.io/s/react-fullpage-page-transition-bug-5qre5d?file=/components/fullpage.js
(might need to open a new terminal and run `yarn start` and open a new browser in `:3001`, seems to be some issue with CodeSandbox)

### Steps to reproduce it
1. Click down the sections until you get to the last section
2. Click link to the second page
3. See that you end up on section number 2 and not the first one

### Versions
Chrome, Mac OS

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。