From d9d58e60dedf05b673eedbb40f116f43d3822765 Mon Sep 17 00:00:00 2001 From: Katherine Date: Thu, 13 Mar 2025 11:14:52 +0800 Subject: [PATCH] fix: incorrect page number when adding data after subtable page size change (#6437) --- .../src/schema-component/antd/association-field/SubTable.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx b/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx index bcfe463899..38209fca61 100644 --- a/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx @@ -189,6 +189,7 @@ export const SubTable: any = observer( onChange: (page, pageSize) => { setCurrentPage(page); setPageSize(pageSize); + field.componentProps.pageSize = pageSize; field.onInput(field.value); }, showSizeChanger: true,