alvarotrigo / alvarotrigo/react-fullpage

Crash on reloading a page with slide anchor

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

描述

### Description

When using `data-anchor` with slides, if I reload a page with a slide anchor in the url the app crashes with error message "can't access property "item", r.activeSlide is null".

### Link to isolated reproduction with no external CSS / JS
[codesandbox link](https://codesandbox.io/p/sandbox/fullpage-slides-bug-repro-forked-vknqnz)

### Steps to reproduce it
1. Open codesandbox link.
2. Go to "Slide2" using right arrow button.
3. Notice that "#section1/Slide2" is added to the url.
4. Reload the page inside codesandbox (not codesandbox itself).
5. Observe the application crash.

### Versions
Versions can be found within the Codesandbox link provided.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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