diff --git a/packages/web/src/datagrid/DataGridCore.svelte b/packages/web/src/datagrid/DataGridCore.svelte index 787708194..66eb34fd2 100644 --- a/packages/web/src/datagrid/DataGridCore.svelte +++ b/packages/web/src/datagrid/DataGridCore.svelte @@ -483,6 +483,7 @@ let domFocusField; let domHorizontalScroll; let domVerticalScroll; + let domContainer; let currentCell = topLeftCell; let selectedCells = [topLeftCell]; @@ -492,7 +493,7 @@ let autofillSelectedCells = emptyCellArray; const domFilterControlsRef = createRef({}); - let isGridFocused=false; + let isGridFocused = false; const tabid = getContext('tabid'); @@ -596,6 +597,7 @@ selectedCells = [cell]; await tick(); scrollIntoView(cell); + domFocusField?.focus(); } export async function cloneRows() { @@ -1838,11 +1840,11 @@ {/if} {:else if isDynamicStructure && isLoadedAll && grider?.rowCount == 0} -