Client-side pagination on table component breaks on last page

My table component uses client-side pagination. This bug happens only if I do not specify the page size.

Issue:
When the page size is not specified in the component config, pagination breaks on the last page. Say I have a dataset of 150 items. The table decides to break that set down into pages of 13 items each. Each page has 13 items, until you click through to the last page, which has 7 items remaining. At this point the table automatically refreshes the pagination of the entire table to be 7 items per page, and the items showing in the current page are no longer the last 7 items anymore but (current_page_number) * (7_items_per_page).

Steps I've taken to troubleshoot:
A workaround is to specify a page size in the table config. If you do that, then the last page correctly renders the remainder, instead of causing the whole table to refresh with a different page size.