mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Merge pull request #179 from ericol/fix-pagination
Fix pagination component
This commit is contained in:
commit
62ec2c4277
1 changed files with 2 additions and 5 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,10 +68,7 @@
|
|||
labelText={`Page number, of ${totalPages} pages`}
|
||||
inline
|
||||
hideLabel
|
||||
on:change={({ detail }) => {
|
||||
page = Number(detail);
|
||||
}}
|
||||
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