mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(pagination): on:change
dispatches with correct value (#2194)
This commit is contained in:
parent
28d15ffed8
commit
44a6cc0dfc
2 changed files with 27 additions and 8 deletions
|
@ -135,8 +135,8 @@
|
|||
hideLabel
|
||||
noLabel
|
||||
inline
|
||||
on:change={() => {
|
||||
dispatch("change", { pageSize });
|
||||
on:update={(event) => {
|
||||
dispatch("change", { pageSize: event.detail });
|
||||
}}
|
||||
bind:selected={pageSize}
|
||||
>
|
||||
|
@ -165,8 +165,8 @@
|
|||
labelText="Page number, of {totalPages} pages"
|
||||
inline
|
||||
hideLabel
|
||||
on:change={() => {
|
||||
dispatch("change", { page });
|
||||
on:update={(event) => {
|
||||
dispatch("change", { page: event.detail });
|
||||
}}
|
||||
bind:selected={page}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue