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={() => {
|
||||
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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue