TonyGermaneri / canvas-datagrid

Canvas based data grid web component. Capable of displaying millions of contiguous hierarchical rows and columns without paging or loading, on a single canvas element.
BSD 3-Clause "New" or "Revised" License
1.42k stars 184 forks source link

Clearing selection removes wrong rows if filter is active #559

Open mdebrauw opened 1 year ago

mdebrauw commented 1 year ago

When clearing selected cells and a filter is active cells on the wrong row are cleared or an error is thrown.

2023-05-07 15 40 40

On clearing selection the boundRowIndex is used instead of viewRowIndex:

https://github.com/TonyGermaneri/canvas-datagrid/blob/f36f904be004813123b6f38b786949d0c5c0eb51/lib/selections/index.js#L495