fix(pagination): Bound correct values

Both `Select` components in pagination were bound to the wrong value.
This commit is contained in:
Erico Lendzian 2020-05-08 18:33:33 -03:00
commit d4549bf8f1

View file

@ -47,7 +47,7 @@
on:change={() => {
page = 1;
}}
bind:defaultValue={pageSize}>
bind:selected={pageSize}>
{#each pageSizes as size, i (size)}
<SelectItem value={size} text={size.toString()} />
{/each}
@ -68,7 +68,7 @@
labelText={`Page number, of ${totalPages} pages`}
inline
hideLabel
bind:defaultValue={page}>
bind:selected={page}>
{#each selectItems as size, i (size)}
<SelectItem value={size + 1} text={(size + 1).toString()} />
{/each}