-
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
bug(mat-expansion-panel): Expansion panel content flickers during ng-animation for lazy-loaded custom height nested expansion panels #22715
Labels
area: material/expansion
help wanted
The team would appreciate a PR from the community to address this issue
P4
A relatively minor issue that is not relevant to core functions
Comments
jelbourn
added
area: material/expansion
help wanted
The team would appreciate a PR from the community to address this issue
P4
A relatively minor issue that is not relevant to core functions
and removed
needs triage
This issue needs to be triaged by the team
labels
May 19, 2021
Is anyone currently working on this, or can I attempt to fix it? |
xAmaris
added a commit
to xAmaris/components
that referenced
this issue
Mar 11, 2023
…ation for lazy-loaded custom height nested expansion panels This fix introduces workaround for a `void => collapsed` animation that is causing improper behaviour for lazy-loaded body. First, it disables first `void => collapsed` animation after init to disable recalculation which fixes changing heights of inner panels. Second, it sets `mat-expansion-panel-hidden` class on content init and removes it on creating lazy-loaded body to remove flicker of parent expansion panel Fixes angular#22715
xAmaris
added a commit
to xAmaris/components
that referenced
this issue
Mar 11, 2023
…ation for lazy-loaded custom height nested expansion panels This fix introduces workaround for a `void => collapsed` animation that is causing improper behaviour for lazy-loaded body. First, it disables first `void => collapsed` animation after init to disable recalculation which fixes changing heights of inner panels. Second, it sets `mat-expansion-panel-hidden` class on content init and removes it on creating lazy-loaded body to remove flicker of parent expansion panel Fixes angular#22715
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Dec 5, 2024
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.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Dec 5, 2024
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#20517. Fixes angular#17177. Fixes angular#16534. Fixes angular#16503. Fixes angular#14952. Fixes angular#14759. Fixes angular#14075. Fixes angular#11765.
crisbeto
added a commit
that referenced
this issue
Dec 5, 2024
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 #27946. Fixes #22715. Fixes #21434. Fixes #20517. Fixes #17177. Fixes #16534. Fixes #16503. Fixes #14952. Fixes #14759. Fixes #14075. Fixes #11765. (cherry picked from commit aafa151)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: material/expansion
help wanted
The team would appreciate a PR from the community to address this issue
P4
A relatively minor issue that is not relevant to core functions
Nested lazy-loaded expansion panels with a custom collapsed height lead to a flickering animation when uncollapsing the parent expansion panel for the first time.
Reproduction
Stackblitz: https://stackblitz.com/edit/nested-lazyloaded-customheight-expansion-panel?file=src/app/example-component.html
Steps to reproduce:
Expected Behavior
The expansion panel opens smoothly.
Actual Behavior
The height of the expansion panel flickers during the animation when opening the parent expansion panel for the first time.
Environment
The text was updated successfully, but these errors were encountered: