From 24e77c6231fe820db6dd4769e4db5cbf952190e3 Mon Sep 17 00:00:00 2001 From: ttonev Date: Thu, 10 Apr 2025 17:11:07 +0300 Subject: [PATCH] fix(grids): ensure cell activation occurs after animation frame in key navigation --- .../grids/grid/editing-excel-style-custom/wwwroot/events.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/grids/grid/editing-excel-style-custom/wwwroot/events.js b/samples/grids/grid/editing-excel-style-custom/wwwroot/events.js index 4bb1d4dc70..275e52150a 100644 --- a/samples/grids/grid/editing-excel-style-custom/wwwroot/events.js +++ b/samples/grids/grid/editing-excel-style-custom/wwwroot/events.js @@ -66,8 +66,11 @@ window.attachKeyDownEvent = () => { const nextRowIndex = this.getNextEditableRowIndex(thisRow, dataView, e.shiftKey); grid1.navigateTo(nextRowIndex, activeElem.column.visibleIndex, (obj) => { + grid1.clearCellSelection(); - obj.target.activate(); + requestAnimationFrame(() => { + obj.target.activate(); + }) }); } });