Add prefix to key of pad rows (#828)

Add prefix to key of pad rows so it doesn't conflict with keys of page rows.
Duplicate keys are causing rendering issues with preact.
This commit is contained in:
Richard A 2018-05-25 08:23:53 +10:00 committed by Tanner Linsley
parent fcdc3d88bc
commit 60766cf261

View File

@ -708,7 +708,7 @@ export default class ReactTable extends Methods(Lifecycle(Component)) {
const trGroupProps = getTrGroupProps(finalState, undefined, undefined, this)
const trProps = _.splitProps(getTrProps(finalState, undefined, undefined, this))
return (
<TrGroupComponent key={i} {...trGroupProps}>
<TrGroupComponent key={`pad-${i}`} {...trGroupProps}>
<TrComponent
className={classnames(
'-padRow',