mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
fix(pagination): convert page variable to number type
The Select component coerces the page value into a string, which affects other components.
This commit is contained in:
parent
192f98dc5d
commit
0138910077
2 changed files with 17 additions and 2 deletions
|
@ -12,6 +12,12 @@
|
|||
{:else if story === 'skeleton'}
|
||||
<PaginationSkeleton />
|
||||
{:else}
|
||||
<Pagination {...$$props}>Pagination</Pagination>
|
||||
<Pagination
|
||||
{...$$props}
|
||||
on:update="{({ detail }) => {
|
||||
console.log(detail);
|
||||
}}">
|
||||
Pagination
|
||||
</Pagination>
|
||||
{/if}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue