Skip to content

Commit

Permalink
feat(pagination): refactor onJump
Browse files Browse the repository at this point in the history
  • Loading branch information
xiamiao committed Jul 24, 2024
1 parent f88d578 commit 504b528
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .changeset/quick-plums-cough.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@hi-ui/hiui": patch
---

feat(pagination): 修复 onJump 事件不触发的问题
fix(pagination): 修复 onJump 事件不触发的问题
2 changes: 1 addition & 1 deletion packages/ui/pagination/src/DefaultPagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export const DefaultPagination = forwardRef<HTMLDivElement | null, PaginationPro
pageText={[gotoText, pageText]}
onJump={(page) => {
proxyTrySetCurrent(page)
onJump && onJump(page)
onJump?.(page)
}}
maxJump={calculatePageCount(total, pageSize)}
/>
Expand Down

0 comments on commit 504b528

Please sign in to comment.