Skip to content

Commit

Permalink
Merge pull request #1451 from msssk/1298-autosave-focus
Browse files Browse the repository at this point in the history
Keep track of focused editor cell so it persists after autosave
  • Loading branch information
msssk committed Apr 18, 2020
1 parent 1ecdf07 commit 6a502b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ define([

if (previouslyFocusedCell && previouslyFocusedCell.row.id === row.id) {
this.edit(this.cell(row, previouslyFocusedCell.column.id));
this._previouslyFocusedEditorCell = null;
}
return rowElement;
},
Expand Down Expand Up @@ -280,6 +281,7 @@ define([
return null;
}

this._previouslyFocusedEditorCell = cell;
column = cell.column;
field = column.field;
cellElement = cell.element.contents || cell.element;
Expand Down

0 comments on commit 6a502b1

Please sign in to comment.