mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(use-pagination): controlled page after delay (#4536)
* fix(use-pagination): add page to dependency for scrollTo * feat(changeset): add changeset * chore(changeset): update package name
This commit is contained in:
parent
e53e454bcd
commit
0bfc03e675
5
.changeset/stale-days-sniff.md
Normal file
5
.changeset/stale-days-sniff.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@heroui/pagination": patch
|
||||
---
|
||||
|
||||
add page to dependency for scrollTo (#4522)
|
||||
@ -298,6 +298,7 @@ export function usePagination(originalProps: UsePaginationProps) {
|
||||
}
|
||||
activePageRef.current = activePage;
|
||||
}, [
|
||||
page,
|
||||
activePage,
|
||||
disableAnimation,
|
||||
disableCursorAnimation,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user