Skip to content

Commit

Permalink
bugfix(editor): add a flag to suppress active cell changed on edit #242
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed May 17, 2018
1 parent 6e4b6b6 commit abf0ff3
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 abf0ff3

Please sign in to comment.