You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
handleClick() {
...
if ((activeCell != cell.cell || activeRow != cell.row) && canCellBeActive(cell.row, cell.cell)) {
if (!getEditorLock().isActive() || getEditorLock().commitCurrentEdit()) {
if (hasFrozenRows) {
if (( !( options.frozenBottom ) && ( cell.row >= actualFrozenRow ) )
|| ( options.frozenBottom && ( cell.row < actualFrozenRow ) )
) {
// what was the point here?
}
}
scrollRowIntoView(cell.row, false);
setActiveCellInternal(getCellNode(cell.row, cell.cell));
}
}
}
This eliminates any difference of handling on hasFrozenRows or not, However, I have to believe there was a reason for the conditional, but I'm not sure what it was.
Edit: Fixed codeblocks md syntax.
The text was updated successfully, but these errors were encountered:
jusbuc2k
changed the title
Changes made to handleClick() in slick.grid.js break row selection is broken
Changes made to handleClick() in slick.grid.js break row selection
May 21, 2014
The last block of handleClick() breaks row selection, because it only calls setActiveCellInternal if there are frozen rows.
I fixed this by changing this:
to this:
This eliminates any difference of handling on hasFrozenRows or not, However, I have to believe there was a reason for the conditional, but I'm not sure what it was.
Edit: Fixed codeblocks md syntax.
The text was updated successfully, but these errors were encountered: