mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
fix #172
This commit is contained in:
parent
4bb2ae2ba0
commit
fc813e80b6
5
packages/react-bootstrap-table2/src/row.js
vendored
5
packages/react-bootstrap-table2/src/row.js
vendored
@ -1,4 +1,5 @@
|
||||
/* eslint react/prop-types: 0 */
|
||||
/* eslint react/no-array-index-key: 0 */
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
@ -126,7 +127,7 @@ class Row extends Component {
|
||||
}
|
||||
return (
|
||||
<EditingCell
|
||||
key={ content }
|
||||
key={ `${content}-${index}` }
|
||||
row={ row }
|
||||
column={ column }
|
||||
className={ editCellclasses }
|
||||
@ -137,7 +138,7 @@ class Row extends Component {
|
||||
}
|
||||
return (
|
||||
<Cell
|
||||
key={ content }
|
||||
key={ `${content}-${index}` }
|
||||
row={ row }
|
||||
rowIndex={ rowIndex }
|
||||
columnIndex={ index }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user