TreeGrid: selectedRows is reporting incorrect indexes, occurs after updating tree data with rows selected #5631
Labels
for: customer
Issue came from a customer
team: landmark
For Landmark issues
type: bug 🐛
[3]
Velocity rating (Fibonacci)
Projects
Describe the bug
A tree grid with select of 'mixed' is reporting incorrect selected row indexes. Occurs when row(s) are selected and then the tree is updated following an expand action that inserts additional rows into the tree.
Steps to reproduce the behavior:
Refresh the browser
Expected behavior:
The method selectedRows() returns the valid idx for the selected rows.
Seems like the internal global variable _selectedRows needs to be updated when rows are added to the treeGrid following an expand row to accurately reflect the actual row index.
Version
The text was updated successfully, but these errors were encountered: