coding-blocks / coding-blocks/codingblocks.online.projectx

We need to scroll to the top of the page, when showing pages

Ouverte
#418 2 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
BOSS BOUNTY: 100
Langage dominant
JavaScript
Étoiles
31
Forks
102
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

By Default, the scroll position is preserved while transitioning routes. However, at times this isn't the desired behaviour.
We need to scroll to top for the following pages:

- [ ] Home
- [ ] All Courses
- [ ] My Courses
- [ ] Course Timeline (Course Overview)
- [ ] Course/:id

### How ?
Use [ember-router-scroll](https://github.com/dollarshaveclub/ember-router-scroll) plugin, and use the mixin at the mentioned routes.

Don't `window.scrollTop(0, 0)` in beforeModel or similar hook. This will not preserve scroll position when using browser's back button. #DontBreakTheWeb

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

É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.