We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fec9b8 commit 3852227Copy full SHA for 3852227
src/index.js
@@ -746,12 +746,16 @@ export default React.createClass({
746
{...tdProps.rest}
747
>
748
{typeof Cell === 'function' ? (
749
- <Cell
750
- {...rowInfo}
751
- value={rowInfo.rowValues[column.id]}
752
- />
753
- ) : typeof Cell !== 'undefined' ? Cell
754
- : rowInfo.rowValues[column.id]}
+ Cell.prototype.isReactComponent ? (
+ <Cell
+ {...rowInfo}
+ value={rowInfo.rowValues[column.id]}
+ />
+ ) : Cell({
755
+ ...rowInfo,
756
+ value: rowInfo.rowValues[column.id]
757
+ })
758
+ ) : rowInfo.rowValues[column.id]}
759
</TdComponent>
760
)
761
})}
0 commit comments