Skip to content

Commit

Permalink
Merge pull request #18956 from jeclrsg/hpcc-32389-grid-lose-selected-…
Browse files Browse the repository at this point in the history
…items-on-focus

HPCC-32389 ECL Watch v9 fix grid selection onFocus
  • Loading branch information
GordonSmith authored Aug 8, 2024
2 parents 5fa3ae9 + bcafb53 commit 14e22b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esp/src/src-react/components/controls/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,9 @@ const FluentStoreGrid: React.FunctionComponent<FluentStoreGridProps> = ({
setTotal(total);
});
storeQuery.then(items => {
const selectedIndices = selectionHandler.getSelectedIndices();
setItems(items);
setSelection(selectionHandler.getSelection());
selectedIndices.forEach(index => selectionHandler.setIndexSelected(index, true, false));
});
}, [count, selectionHandler, start, store], [query, sorted]);

Expand Down

0 comments on commit 14e22b7

Please sign in to comment.