[Paginator] Does not update correctly when `pageSize` updated programatically
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
#### Bug, feature request, or proposal:
Bug
#### What is the expected behavior?
When changing the `pageSize` attribute on a pager instance, the pager should immediately redraw the visible rows to match the new setting.
#### What is the current behavior?
The description text ("Items per page: 10") is updated, however the old number of rows still appear.
#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-material2-issue-pvrjd5
#### What is the use-case or motivation for changing an existing behavior?
Dynamically changing the number of rows (e.g. on page resize)
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.0.6, Material 6.4.1
#### Is there anything else we should know?
Calling `_changePageSize()` instead of changing the property works as expected.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la reproduction StackBlitz et comparez l’affectation directe de pageSize avec _changePageSize(). Le travail est terminé lorsque la modification de pageSize redessine immédiatement les lignes visibles tout en mettant à jour le texte du nombre d’éléments par page, sans nécessiter la méthode privée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100