Skip to content

Commit

Permalink
fix(antd/next): fix SelectTable rowSelection bug (#2815)
Browse files Browse the repository at this point in the history
* feat(next/antd): support disabled props from field in ArrayBase.Addition

* fix(antd/next): fix Cascader readPretty bug

* fix(antd/next): fix SelectTable rowSelection bug
  • Loading branch information
ifblooms authored Feb 11, 2022
1 parent 4e1ce55 commit babc5c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/antd/src/select-table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export const SelectTable: ComposedSelectTable = observer((props) => {
: {
...rowSelection,
getCheckboxProps: (record) => ({
...(rowSelection?.getCheckboxProps(record) as any),
...(rowSelection?.getCheckboxProps?.(record) as any),
disabled,
}), // antd
selectedRowKeys: selected,
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/select-table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export const SelectTable: ComposedSelectTable = observer((props) => {
: {
...rowSelection,
getProps: (record, index) => ({
...(rowSelection?.getProps(record, index) as any),
...(rowSelection?.getProps?.(record, index) as any),
disabled,
}), // fusion
selectedRowKeys: selected,
Expand Down

0 comments on commit babc5c2

Please sign in to comment.