Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/default selection #260

Merged
merged 4 commits into from
Mar 18, 2018
Merged

Bugfix/default selection #260

merged 4 commits into from
Mar 18, 2018

Conversation

chunming-c
Copy link
Member

fix #246

update state.selectedRowKeys when receiving next props.

selectedRowKeys: this.store.selected
}));
}
this.setState(() => ({
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @AllenFang:

I've removed null check of nextProps.selectRow because it was marked as isRequired.

One more thing is that I'm curious about the purpose of componentWillReceiveProps. So far we handled row selection by handleRowSelect and handleAllRowsSelect. Both of them would set state.selectedRowKeys in the end. Is it related to remote or something or maybe we don't need componentWillReceiveProps?

@chunming-c chunming-c added this to To do in 20180320-sprint via automation Mar 17, 2018
@AllenFang AllenFang merged commit de27072 into develop Mar 18, 2018
20180320-sprint automation moved this from To do to Done Mar 18, 2018
@AllenFang AllenFang deleted the bugfix/default-selection branch March 18, 2018 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants