-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Pagination] Example passes string for pageSize, breaking getRangeLabel #8624
Comments
The example takes the form field's value for the page size and passes it to the Will need to fix this by using |
This fix is available in last build? I have the same error with the last version (5.0.2). |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
When I set page size to 1 then go to next page, it should changes from
1 - 1 of 100
to2 - 2 of 100
. Then next page again it should be3-3 of 100
When I set page size to 2 then go to next page, it should changes from
1 - 2 of 100
to3 - 4 of 100
. Then next page again it should be5-6 of 100
What is the current behavior?
When I set page size to 1 then go to next page, it changes from
1 - 1 of 100
to2 - 20 of 100
. Then next page again it should be3-30 of 100
When I set page size to 2 then go to next page, it changes from
1 - 2 of 100
to3 - 22 of 100
. Then next page again it should be5-42 of 100
What are the steps to reproduce?
https://material.angular.io/components/paginator/examples
What is the use-case or motivation for changing an existing behavior?
I am just trying to test it for the first time
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5.0.3
Angular Material 5.0.0-rc.1
Is there anything else we should know?
Plunkr example is not working too(In most of the time for other examples too actually)
angular/material.angular.io#334
The text was updated successfully, but these errors were encountered: