-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expandable table in tabs component, navigate away and navigate back from tab, causes all table rows to show expanded content #20610
Comments
This issue doesn't have enough information for the team to investigate. Can you include a StackBlitz reproduction? |
Good idea. Stackblitz is here: To create this Sackblitz, I took the example on the materials website - Table with expandable rows,. I copy pasted the table html and put each table in a different tab. If you go to tab 2 and back to tab 1, the bug is clearly visible. |
This seems identical to #20517. I looked into it a while ago and there were two problems:
When I tried fixing it for #20517, removing the |
Interesting. The trigger on load has the transition:
The transition on switching tabs has the transition:
A working transition has the transition event:
or when collapsing:
After the switching tabs transition has happened and it goes into state void, the transition events are no longer fired. I've updated the stackblitz example to include a console log of the event each time it occurs. As you can see the transition event fires once for each row when the page loads of a tab is clicked. |
Facing same issue, any updates here or work around? |
Seems to be also an issue with (vertical) stepper in Angular 18... |
Reworks the expansion panel to animate purely with CSS, rather than going through the `@angular/animations` module. This simplifies the setup and allows us to resolve several long-standing bug reports. Fixes angular#27946. Fixes angular#22715. Fixes angular#21434. Fixes angular#20610. Fixes angular#20517. Fixes angular#17177. Fixes angular#16534. Fixes angular#16503. Fixes angular#14952. Fixes angular#14759. Fixes angular#14075. Fixes angular#11765.
If you put a table with expandable rows in a tab, then navigate away and navigate back, the table appears with all the rows expanded. On first opening of tab, there is no issue, so I'm guessing this is an issue happens when you navigate away, the table gets expanded (you have to then double click each row to hide expanded content).
Versions
10.0.6 @angular/cli
10.1.3 @angular/material
The text was updated successfully, but these errors were encountered: