Skip to content

Commit

Permalink
fix issue 6pac#68 editor with activeRow selection
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 4c9ac5f commit 3b0db92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2741,7 +2741,7 @@
scrollRowIntoView(cell.row, false);

var preClickModeOn = (e.target && e.target.className === Slick.preClickClassName);
setActiveCellInternal(getCellNode(cell.row, cell.cell), null, preClickModeOn);
setActiveCellInternal(getCellNode(cell.row, cell.cell), null, preClickModeOn, true);
}
}
}
Expand Down Expand Up @@ -3696,7 +3696,7 @@
var newCell = getCellNode(row, cell);

// if selecting the 'add new' row, start editing right away
setActiveCellInternal(newCell, forceEdit || (row === getDataLength()) || options.autoEdit);
setActiveCellInternal(newCell, (forceEdit || (row === getDataLength()) || options.autoEdit), null, true);

// if no editor was created, set the focus back on the grid
if (!currentEditor) {
Expand Down

0 comments on commit 3b0db92

Please sign in to comment.