[Paginator] Does not update correctly when `pageSize` updated programatically
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
#### 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.
Guía de contribución
Línea de trabajo
Comienza con la reproducción en StackBlitz y compara la asignación directa de pageSize con _changePageSize(). Se considera terminado cuando cambiar pageSize vuelve a dibujar inmediatamente las filas visibles y actualiza el texto de elementos por página, sin requerir el método privado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100