Merge pull request #209 from IBM/fix-pagination-select

fix(pagination): fix pagination select page regression
This commit is contained in:
Eric Liu 2020-07-20 20:40:35 -07:00 committed by GitHub
commit 1a73d7c48e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,20 +37,16 @@
<div class:bx--pagination__left={true}>
<label
id="bx--pagination-select-{id}-count-label"
class:bx--pagination__text={true}
for="bx--pagination-select-{id}">
for="bx--pagination-select-{id}"
class:bx--pagination__text={true}>
{itemsPerPageText}
</label>
<Select
id="bx--pagination-select-{id}"
class="bx--select__item-count"
labelText=""
hideLabel
noLabel
inline
on:change={() => {
page = 1;
}}
bind:selected={pageSize}>
{#each pageSizes as size, i (size)}
<SelectItem value={size} text={size.toString()} />