Skip to content

Commit

Permalink
bugfix(editor): add a flag to suppress active cell changed on edit 6p…
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored and Lasse Hyyrynen committed Dec 19, 2018
1 parent dc4777a commit 85e47d3
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 @@ -56,6 +56,7 @@
leaveSpaceForNewRows: false,
editable: false,
autoEdit: true,
suppressActiveCellChangeOnEdit: false,
enableCellNavigation: true,
enableColumnReorder: true,
asyncEditorLoading: false,
Expand Down Expand Up @@ -2742,7 +2743,7 @@

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 85e47d3

Please sign in to comment.