Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pagination): mark selected option in page-sizes-select component (c…
…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.
- Loading branch information