Skip to content

Commit

Permalink
fix(table): fix checkall button is disabled when reserveSelectedRowOn…
Browse files Browse the repository at this point in the history
…Paginate=false and request data async (#4670)

* fix(table/hooks/useRowSelect): 修复设置 reserveSelectedRowOnPaginate=false 时的全选问题

* fix(table/hooks/useRowSelect): 修复设置 reserveSelectedRowOnPaginate=false 时的全选问题

* chore: fix

---------

Co-authored-by: zyr <[email protected]>
Co-authored-by: Uyarn <[email protected]>
  • Loading branch information
3 people authored Nov 20, 2024
1 parent 15bddf0 commit 61f54c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/table/hooks/useRowSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default function useRowSelect(
};
const selectedRowClass = selected.size ? selectedRowClassFunc : undefined;
selectedRowClassNames.value = [disabledRowClass, selectedRowClass];
currentPaginateData.value = data.value;
},
{ immediate: true },
);
Expand Down

0 comments on commit 61f54c6

Please sign in to comment.