Open maltem-za opened 3 years ago
Expanding results for the first time leads to a lazy creation of the child items. A dummy child (that is needed to display the arrow at all) gets removed and the real children get added. This is a performance optimization since adding all children up front can lead to performance issues when a result has a lot of entries. Ideally this lazy creation shouldn't lead to the need for a second click though. That might be a problem in the Vaadin TreeGrid component which wasn't really prepared for lazy creation.
This is unintuitive and often frustrating. If I remember correctly though, there is a reason and it isn't so easy to solve.