Skip to content
Permalink
Browse files

fix: react warning: Unknown prop `selectedRows` (#499)

  • Loading branch information
sanyatuning authored and tleunen committed Nov 20, 2017
1 parent d6ffb3d commit 47a93db3fd3f12959474685ea582a0e3012a7d71
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/DataTable/Selectable.js
@@ -128,6 +128,7 @@ export default Component => {
// remove unwatned props
// see https://github.com/Hacker0x01/react-datepicker/issues/517#issuecomment-230171426
delete otherProps.onSelectionChanged;
delete otherProps.selectedRows;

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

0 comments on commit 47a93db

Please sign in to comment.
You can’t perform that action at this time.