mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(pagination): Bound correct values
Both `Select` components in pagination were bound to the wrong value.
This commit is contained in:
parent
31f8e500b3
commit
d4549bf8f1
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@
|
||||||
on:change={() => {
|
on:change={() => {
|
||||||
page = 1;
|
page = 1;
|
||||||
}}
|
}}
|
||||||
bind:defaultValue={pageSize}>
|
bind:selected={pageSize}>
|
||||||
{#each pageSizes as size, i (size)}
|
{#each pageSizes as size, i (size)}
|
||||||
<SelectItem value={size} text={size.toString()} />
|
<SelectItem value={size} text={size.toString()} />
|
||||||
{/each}
|
{/each}
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
labelText={`Page number, of ${totalPages} pages`}
|
labelText={`Page number, of ${totalPages} pages`}
|
||||||
inline
|
inline
|
||||||
hideLabel
|
hideLabel
|
||||||
bind:defaultValue={page}>
|
bind:selected={page}>
|
||||||
{#each selectItems as size, i (size)}
|
{#each selectItems as size, i (size)}
|
||||||
<SelectItem value={size + 1} text={(size + 1).toString()} />
|
<SelectItem value={size + 1} text={(size + 1).toString()} />
|
||||||
{/each}
|
{/each}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue