vaadin-component-factory / selection-grid-flow

Add the functionality to Vaadin Grid to focus on a particular row and column and select a range of rows with SHIFT/CTRL Click
https://incubator.app.fi/selection-grid-flow-demo/
Apache License 2.0
5 stars 8 forks source link

Selection using `shift` doesn't work correctly with `setItems()` #40

Closed David-Loibl closed 1 year ago

David-Loibl commented 1 year ago

Selecting multiple rows using the shift key does not work properly when using grid.setItems() to populate the grid (ctrl key works as expected).

The typical result is a selection that jumps several rows to the top.

The issue can be reproduced using a Vaadin Starter App with a grid view and replacing the default Grid with SelectionGrid (example attached).

The example uses the following setup:

Tested in recent versions of Firefox and Chrome.

gridtest.zip

paodb commented 1 year ago

Fixed by https://github.com/vaadin-component-factory/selection-grid-flow/pull/41