Based on the samples in Angular Material Table I added expandable rows and sorting to my table. Each feature works like a charm for itself. But when I try to expand a row after the table was sorted, the first click seems to do nothing at all. The second click opens the row and instantly closes it again. When I click the same row again, it behaves normally again.
Here's a simplified version on stackblitz: https://stackblitz.com/edit/angular-mnqztk
As far as I could find out with logging, the expandedElement property is set correctly for each click, no matter if the table was sorted or not. So I guess there's somthing wrong with the animations trigger detailExpand. I just cannot figure out why it's not getting triggered, when expandedElement is set after the table is sorted.