Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
fix: react warning: Unknown prop selectedRows (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyatuning authored and tleunen committed Nov 20, 2017
1 parent d6ffb3d commit 47a93db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DataTable/Selectable.js
Expand Up @@ -128,6 +128,7 @@ export default Component => {
// remove unwatned props // remove unwatned props
// see https://github.com/Hacker0x01/react-datepicker/issues/517#issuecomment-230171426 // see https://github.com/Hacker0x01/react-datepicker/issues/517#issuecomment-230171426
delete otherProps.onSelectionChanged; delete otherProps.onSelectionChanged;
delete otherProps.selectedRows;


const realRows = selectable const realRows = selectable
? (rows || data).map((row, idx) => { ? (rows || data).map((row, idx) => {
Expand Down

0 comments on commit 47a93db

Please sign in to comment.