Browse Source

Fix rowSelection null, close #2127

pull/2135/head
afc163 9 years ago
parent
commit
7d06517846
  1. 5
      components/table/Table.jsx

5
components/table/Table.jsx

@ -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…
Cancel
Save