-
Notifications
You must be signed in to change notification settings - Fork 160
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 selection doesn't match actual rows shown]: pagination items per page selection shows 5 when the actual rows showing are 10 #10553
Comments
I've found that the bug is seemingly even simpler to reproduce. If you just start with a Here I'm setting the knob for the page size to 20, however the component is rendered with 10 selected. Note that the above is a link to a v1 Storybook instance since that's where this issue was originally reported. |
Also note that for v2 of CWC, although there is a knob intended to set |
…10884) ### Related Ticket(s) Closes #10553 https://jsw.ibm.com/browse/ADCMS-3821 ### Description Fixes a bug where the initial value of the `page-size` attribute on the `<bx-pagination>` component previously did not set the correct `<option>` element within the `<bx-page-sizes-select>` component. ### Changelog **Changed** - Updated the `slotchange` handler for the `<bx-page-sizes-select>` component to set the `selected` attribute when applicable. ### Testing Instructions * Navigate to Pagination > Default story * Enter a different value for "Number of rows per page (page-size)", using one of the other values in the dropdown, eg. 20 or 30 * Click the "Open canvas in new tab" button, this will initiate the story with the set value for `page-size` to test the bug * Should see the value you set for the items per page drop down.
…arbon-design-system#10884) ### Related Ticket(s) Closes carbon-design-system#10553 https://jsw.ibm.com/browse/ADCMS-3821 ### Description Fixes a bug where the initial value of the `page-size` attribute on the `<bx-pagination>` component previously did not set the correct `<option>` element within the `<bx-page-sizes-select>` component. ### Changelog **Changed** - Updated the `slotchange` handler for the `<bx-page-sizes-select>` component to set the `selected` attribute when applicable. ### Testing Instructions * Navigate to Pagination > Default story * Enter a different value for "Number of rows per page (page-size)", using one of the other values in the dropdown, eg. 20 or 30 * Click the "Open canvas in new tab" button, this will initiate the story with the set value for `page-size` to test the bug * Should see the value you set for the items per page drop down.
…arbon-design-system#10884) ### Related Ticket(s) Closes carbon-design-system#10553 https://jsw.ibm.com/browse/ADCMS-3821 ### Description Fixes a bug where the initial value of the `page-size` attribute on the `<bx-pagination>` component previously did not set the correct `<option>` element within the `<bx-page-sizes-select>` component. ### Changelog **Changed** - Updated the `slotchange` handler for the `<bx-page-sizes-select>` component to set the `selected` attribute when applicable. ### Testing Instructions * Navigate to Pagination > Default story * Enter a different value for "Number of rows per page (page-size)", using one of the other values in the dropdown, eg. 20 or 30 * Click the "Open canvas in new tab" button, this will initiate the story with the set value for `page-size` to test the bug * Should see the value you set for the items per page drop down.
…arbon-design-system#10884) ### Related Ticket(s) Closes carbon-design-system/carbon-for-ibm-dotcom#10553 https://jsw.ibm.com/browse/ADCMS-3821 ### Description Fixes a bug where the initial value of the `page-size` attribute on the `<bx-pagination>` component previously did not set the correct `<option>` element within the `<bx-page-sizes-select>` component. ### Changelog **Changed** - Updated the `slotchange` handler for the `<bx-page-sizes-select>` component to set the `selected` attribute when applicable. ### Testing Instructions * Navigate to Pagination > Default story * Enter a different value for "Number of rows per page (page-size)", using one of the other values in the dropdown, eg. 20 or 30 * Click the "Open canvas in new tab" button, this will initiate the story with the set value for `page-size` to test the bug * Should see the value you set for the items per page drop down.
Description
In pagination
bx-pagination
when used with the data table the:page-size
doesn't match thebx-page-sizes-select
selectedoption
(what is displayed on the screen to the user as the selected value in the drop down menu) on reload of the table.If the user chooses 10 and the table is reloaded though a
v-if v-else
the table will show 10 rows (since the variable for:page-size
doesn't get reseted) while the items per page selection returns back to default to 5. The selection can't be changed in code, so there is no work around.Component(s) impacted
Browser
Chrome
Carbon for IBM.com version
v1.27.0
Severity
Severity 1 = The design is broken in a critical way that blocks users from completing tasks or damages the brand. Affects major functionality, no workaround.
Application/website
https://registry.st4sd.res.ibm.com/registry-ui/
Package
@carbon/ibmdotcom-web-components
CodeSandbox example
https://codesandbox.io/s/github/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/carbon-web-components/examples/codesandbox/basic/components/data-table
Steps to reproduce the issue (if applicable)
Release date (if applicable)
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: