mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
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:
parent
fcdc3d88bc
commit
60766cf261
@ -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',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user