File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
packages/react-bootstrap-table2/src Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ const Body = (props) => {
3030 < Row
3131 key = { key }
3232 row = { row }
33+ keyField = { keyField }
3334 rowIndex = { index }
3435 columns = { columns }
3536 cellEdit = { cellEdit }
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const Row = (props) => {
1010 const {
1111 row,
1212 columns,
13+ keyField,
1314 rowIndex,
1415 cellEdit,
1516 editable : editableRow
@@ -28,7 +29,7 @@ const Row = (props) => {
2829 {
2930 columns . map ( ( column , index ) => {
3031 let editable = _ . isDefined ( column . editable ) ? column . editable : true ;
31- if ( ! editableRow ) editable = false ;
32+ if ( column . dataField === keyField || ! editableRow ) editable = false ;
3233 if ( rowIndex === editingRowIdx && index === editingColIdx ) {
3334 return (
3435 < EditingCell
You can’t perform that action at this time.
0 commit comments