The last block of handleClick() breaks row selection, because it only calls setActiveCellInternal if there are frozen rows.
I fixed this by changing this:
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 ) )
) {
scrollRowIntoView(cell.row, false);
}
setActiveCellInternal(getCellNode(cell.row, cell.cell));
}
}
}
}
to this:
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 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.