mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
Add fault-tolerant processing for rowSelection.getCheckboxProps
This commit is contained in:
parent
074363b514
commit
fc88005c9c
@ -153,7 +153,7 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
|
||||
const key = this.getRecordKey(item, index);
|
||||
// Cache checkboxProps
|
||||
if (!this.CheckboxPropsCache[key]) {
|
||||
this.CheckboxPropsCache[key] = rowSelection.getCheckboxProps(item);
|
||||
this.CheckboxPropsCache[key] = rowSelection.getCheckboxProps(item) || {};
|
||||
}
|
||||
return this.CheckboxPropsCache[key];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user