-
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
fix(pagination): mark selected option in page-sizes-select component #10884
fix(pagination): mark selected option in page-sizes-select component #10884
Conversation
Deploy preview created for package Built with commit: d795118561f0717aae5455d4040f535df9be710d |
Deploy preview created for package Built with commit: d795118561f0717aae5455d4040f535df9be710d |
Deploy preview created for package Built with commit: d795118561f0717aae5455d4040f535df9be710d |
Deploy preview created for package Built with commit: d795118561f0717aae5455d4040f535df9be710d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me!
Thanks @emyarod ! I've labeled as Ready to merge and updated with the |
…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.
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
slotchange
handler for the<bx-page-sizes-select>
component to set theselected
attribute when applicable.Testing Instructions
page-size
to test the bug