[md-paginator] pageSize keeps default of 50 even if pageSizeOptions only has 1 option which is not 50 #5767
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Bug, feature request, or proposal:
Bug
What is the expected behavior?
if there is only 1 option set in pageSizeOptions, it should overwrite the default
What is the current behavior?
default is 50 even if it does not exist in pageSizeOptions
What are the steps to reproduce?
<md-paginator
[length]="100"
[pageSizeOptions]="[10]">
What is the use-case or motivation for changing an existing behavior?
simplify code of user only needs/wants 1 page size
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular/core": "4.2.6",
"@angular/cdk: 2.0.0-beta.8",
"@angular/material": "^2.0.0-beta.8",
"@angular/cli": "1.2.0",
"@angular/compiler-cli": "4.2.6",
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: