alvarotrigo / alvarotrigo/react-fullpage

FullPage breaks on re-render due to same number of slides

Ouverte
#157 12 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
JavaScript
Étoiles
1.3k
Forks
172
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hi Alvaro,

As I said in the previous post, your API it's really cool and makes thing a lot nicer.
The issue I mentioned #148 is fixed, we had to find a workaround but it seems like is working

Now slides are generated dynamically onLoad, every time you click on the filtering choices, the page gets rendered together with fullPage.js. The problem appears when switching from filter to filter and I think I found the source of the issue: the problem is on the number of slides generated. If the slides are different in amount, then everything works, but if the number of slides is the same then it breaks the entire site until I click on a filtering option that has a different amount.

Here is an updated version of my CodeSandBox: https://codesandbox.io/s/sweet-napier-6uyq0

### Steps to reproduce it
1. Click on Dry Bar
2. After the page has rendered Click On Beauty
3. As you can see you can't scroll back to the top

I hope you can help me this time

Best
F

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.