mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
Fix rowSelection null, close #2127
This commit is contained in:
parent
00e7eabd4e
commit
7d06517846
@ -140,7 +140,10 @@ export default class Table extends React.Component {
|
||||
this.setState({
|
||||
selectedRowKeys: nextProps.rowSelection.selectedRowKeys || [],
|
||||
});
|
||||
if (nextProps.rowSelection.getCheckboxProps !== this.props.rowSelection.getCheckboxProps) {
|
||||
const { rowSelection } = this.props;
|
||||
if (rowSelection && (
|
||||
nextProps.rowSelection.getCheckboxProps !== rowSelection.getCheckboxProps
|
||||
)) {
|
||||
this.CheckboxPropsCache = {};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user