Last Updated:
27 Jun 2025 08:14
by Stephen
CollectionView: Group cannot be collapsed or expanded after its only child is removed and immediately added at runtime
When the CollectionView is grouped and an element is removed from the source collection and inserted again immediately after that, it results in its parent group not expanding/collapsing when tapped. The tap is registered and the visual indicator of the group state is changed but the group is not actually collapsing and expanding. This issue is happening for groups with only one child item. When scrolling so the group gets our of the visible area and then scroll to the group again, the collapse/expand functionality works.