Skip to content

Commit

Permalink
Merge pull request #243 from 6pac/bugfix/suppress-active-cell-on-edit
Browse files Browse the repository at this point in the history
bugfix(editor): add a flag to suppress active cell changed on edit #242
  • Loading branch information
6pac authored May 18, 2018
2 parents 16f9b1e + abf0ff3 commit 0ee208f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ if (typeof Slick === "undefined") {
leaveSpaceForNewRows: false,
editable: false,
autoEdit: true,
suppressActiveCellChangeOnEdit: false,
enableCellNavigation: true,
enableColumnReorder: true,
asyncEditorLoading: false,
Expand Down Expand Up @@ -2750,7 +2751,7 @@ if (typeof Slick === "undefined") {

var preClickModeOn = (e.target && e.target.className === Slick.preClickClassName);
var column = columns[cell.cell];
var suppressActiveCellChangedEvent = (options.editable && column && column.editor) ? true : false;
var suppressActiveCellChangedEvent = (options.editable && column && column.editor && options.suppressActiveCellChangeOnEdit) ? true : false;
setActiveCellInternal(getCellNode(cell.row, cell.cell), null, preClickModeOn, suppressActiveCellChangedEvent);
}
}
Expand Down

0 comments on commit 0ee208f

Please sign in to comment.