KoGrid
KoGrid copied to clipboard
With multiselect off, after sorting, the last selected row remains highlighted.
Reproduction:
- grid with some data, selectedItems bound (doesn't have to be), multiSelect off.
- select a row
- sort the grid on a different column
- select a new row
What's expected: Previous row is deselected, new row is now active
What's happening: Previous row is removed from selectedItems, but remains highlighted. New row is added to selectedItems, and highlighted as well.
I haven't been able to properly debug, but I suppose the lastClickedRow no longer refers to the visible row after sorting, since sorting sets the data context variable to the newly sorted dataset and therefor triggers a redraw?
Sander