Repository navigation
Labels
P2The issue is important to a large percentage of users, with a workaroundanimationThis issue is related to Angular animations or CSS animationsarea: material/dialogarea: material/expansion
Description
I'm submitting a...
[x] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:
Current behavior
Expansion panels currently render with a flash of unstyled content (FOUC) when nested in a dialog -- they always temporarily appear as expanded, regardless of what the "expanded" attribute is set to. After a moment, all expansion panels that have been explicitly set to closed collapse.
This only occurs in Angular / Material 7.
Expected behavior
Expansion panels should appear as collapsed when the dialog opens when expanded=false instead of briefly appearing as expanded, then collapsing after a delay.
Minimal reproduction of the problem with instructions
Click the button and note the flash of unstyled content in the dialog in Angular 7.
Angular 7 (bugged): https://angular-egzwfw.stackblitz.io
Angular 6 (correct): https://angular-eepzxs.stackblitz.io
What is the motivation / use case for changing the behavior?
Flashes of unstyled content are jarring and feel very buggy.
Environment
Angular version: 7.0.1
Material version: 7.0.2
TypeScript: 3.1.1
Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [x] Firefox version XX
- [x] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
Reacted by Gabriele Franchitto, Felix Lindgren, StavM, Denis Frenademetz, Lance Finney, João Pargana, FONFAAS, pgonzalez, João Almeida, Feargal Kavanagh and 37 more
Reacted by Julien, Vo Trong Ky Dinh, Joshua Martinetti and mario45211
Metadata
Metadata
Assignees
Labels
P2The issue is important to a large percentage of users, with a workaroundanimationThis issue is related to Angular animations or CSS animationsarea: material/dialogarea: material/expansion
Activity
crisbeto commentedon Oct 30, 2018
Might potentially be solved by #11778.
crisbeto commentedon Oct 30, 2018
I tried it out and it doesn't look like it'll be fixed by #11778.
fix(dialog,bottom-sheet): enter animation blocking child animations
fix(dialog,bottom-sheet): enter animation blocking child animations (#…
fix(dialog,bottom-sheet): enter animation blocking child animations (a…
fix(dialog,bottom-sheet): enter animation blocking child animations (#…
josephperrott commentedon Nov 20, 2018
Reopening as the fix was reverted.
This seems to be a larger issue across our library as our components use animations to set state quite frequently.
crisbeto commentedon Nov 20, 2018
@josephperrott I've opened #14127 which should fix the issue and avoid the presubmit issues.
33 remaining items
vgt-benjaminh commentedon Dec 8, 2021
Also happens when the expansion panel is placed inside a stepper using Angular Material 11.2.13
pranav-js commentedon Feb 14, 2022
give this issue some attention please. this is serious glitch and I spent so much time thinking I was doing something wrong! but it seems to be there since 2018!
steffenhees commentedon Feb 20, 2022
If this is not fixed yet, please fix it!!! Thank you!!!
Had the same problem. With the workaround from @dcrouch79 it works for now. Thanks!
fix(multiple): don't block child component animations on open
fix(multiple): don't block child component animations on open
fix(multiple): don't block child component animations on open (#24529)
fix(multiple): don't block child component animations on open (#24529)
fix(multiple): don't block child component animations on open (angula…
angular-automatic-lock-bot commentedon Apr 6, 2022
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(dialog,bottom-sheet): enter animation blocking child animations (a…
fix(dialog,bottom-sheet): enter animation blocking child animations (a…