Skip to content

Commit

Permalink
fix(list): onChange prop don't work (ant-design#7129)
Browse files Browse the repository at this point in the history
  • Loading branch information
kungege committed May 25, 2023
1 parent ab24418 commit 96b9ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/table/src/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ const ProTable = <
],
debounceTime: props.debounceTime,
onPageInfoChange: (pageInfo) => {
if (type === 'list' || !propsPagination || !fetchData) return;
if (!propsPagination || !fetchData) return;

// 总是触发一下 onChange 和 onShowSizeChange
// 目前只有 List 和 Table 支持分页, List 有分页的时候打断 Table 的分页
Expand Down

0 comments on commit 96b9ab9

Please sign in to comment.