Proplem with selection event of data grid (multy select)

I have two data grids: Grid 1 and Grid 2.

  • When I select a record in Grid 1, a corresponding record is created and displayed in Grid 2.
  • However, when I deselect a record in Grid 1, and then call grid1.getSelectedItems(), the deselected item is still present in the returned collection.
    How can I retrieve only the records that are currently selected?
    Code:
    image
    When i select first record
    image
    Then i deselect firt record, and select second record:
    image

Hi,

Unfortunately, I cannot reproduce the problem, checked on the lastest Jmix version. Both DataGrid and corresponding SelectionEvent return correct selected items.

Could you please attach a small demo project that reproduces the problem?

Regards,
Gleb