Treegrid selection bug

If you have a treegrid row selected and remove a child row via data.remove() method the selection is lost and a new row is randomly selected.

This can be reproduced when u have “afterExpand” event and inside it u delete a child of the row which u have expanded.

Hello.

Thank you for your report. The problem was confirmed. We’ll try to fix it in one of the future updates.

We fixed your reported problem in the latest dhx.Suite update (v8.1.3.)
You can check it in the following snippet:
https://snippet.dhtmlx.com/oj7tw9um
Please, download the latest available dhx.Suite build to get this fix.
Thank you for your report.

You fixed this but u introduced double more new bugs. Updating to a newer version feels like cutting the head of a dragon just to realize that two more heads grow immediately after that.