Fix for table component checkbox selection focus the previous active … (#20301)

* Fix for table component checkbox selection focus the previous active row instead of newly checked row

* comment updated
This commit is contained in:
Sai Avishkar Sreerama
2022-08-11 11:47:00 -05:00
committed by GitHub
parent 4d91a32bed
commit 0e05c32f15

View File

@@ -191,7 +191,8 @@ export class CheckboxSelectColumn<T extends Slick.SlickData> implements Slick.Pl
this._grid.render();
}
//Ensure that the focus stays correct
//Ensure that the focus stays on current selected checkbox cell
this._grid.setActiveCell(row, col);
if (this._grid.getActiveCellNode()) {
this._grid.getActiveCellNode().focus();
}