alvarotrigo / alvarotrigo/react-fullpage

Scroll back to to first section after page refresh

オープン
#355 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
JavaScript
スター
1.3k
フォーク
172
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi there!

I have a Next.js build using custom validation to control the user's movement between sections. (it's a quiz)

The problem is that when the page is refreshed, all state data is lost breaking the dynamic content generated based on interactions in previous sections. I'd like it so that when the user refreshes their browser, they are returned to #Section1

I've tried the methods in the docs and they work momentarily after refresh, but then react-fullpage quickly slides back down to the side the user was on before refresh. I wonder if this is to do with the anchor tag in the URL?

Please help me understand what I'm missing here.

Cheers!

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。