From 0e05c32f15925735c62c24d436b72b6da224822b Mon Sep 17 00:00:00 2001 From: Sai Avishkar Sreerama <74571829+ssreerama@users.noreply.github.com> Date: Thu, 11 Aug 2022 11:47:00 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20for=20table=20component=20checkbox=20sele?= =?UTF-8?q?ction=20focus=20the=20previous=20active=20=E2=80=A6=20(#20301)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix for table component checkbox selection focus the previous active row instead of newly checked row * comment updated --- .../browser/ui/table/plugins/checkboxSelectColumn.plugin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sql/base/browser/ui/table/plugins/checkboxSelectColumn.plugin.ts b/src/sql/base/browser/ui/table/plugins/checkboxSelectColumn.plugin.ts index 572efd31d2..45ae831446 100644 --- a/src/sql/base/browser/ui/table/plugins/checkboxSelectColumn.plugin.ts +++ b/src/sql/base/browser/ui/table/plugins/checkboxSelectColumn.plugin.ts @@ -191,7 +191,8 @@ export class CheckboxSelectColumn 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(); }