Skip to content

Commit aceada7

Browse files
authored
fix(react-grid): correct focus behavior when switching to row edit mode (#455)
1 parent f3021b9 commit aceada7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/dx-grid-core/src/plugins/table-edit-row/computeds.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export const tableRowsWithEditing = (tableRows, editingRows, addedRows, rowHeigh
88
tableRow.type === TABLE_DATA_TYPE && rowIds.has(tableRow.rowId)
99
? {
1010
...tableRow,
11-
key: `${TABLE_EDIT_TYPE}_${tableRow.rowId}`,
1211
type: TABLE_EDIT_TYPE,
1312
height: rowHeight,
1413
}

packages/dx-grid-core/src/plugins/table-edit-row/computeds.test.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ describe('TableEditRow Plugin computeds', () => {
99
it('should work', () => {
1010
const tableRows = [
1111
{ type: TABLE_DATA_TYPE, rowId: 1, row: 'row1' },
12-
{ type: TABLE_DATA_TYPE, rowId: 2, row: 'row2' },
12+
{
13+
key: `${TABLE_DATA_TYPE}_2`,
14+
type: TABLE_DATA_TYPE,
15+
rowId: 2,
16+
row: 'row2',
17+
},
1318
{ type: 'undefined', rowId: 2, row: 'row2' },
1419
];
1520
const editingRows = [2];
@@ -33,7 +38,7 @@ describe('TableEditRow Plugin computeds', () => {
3338
},
3439
{ type: TABLE_DATA_TYPE, rowId: 1, row: 'row1' },
3540
{
36-
key: `${TABLE_EDIT_TYPE}_2`,
41+
key: `${TABLE_DATA_TYPE}_2`,
3742
type: TABLE_EDIT_TYPE,
3843
rowId: 2,
3944
row: 'row2',

0 commit comments

Comments
 (0)