forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(material/expansion): Expansion panel content flickers during anim…
…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
- Loading branch information
Showing
3 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,10 @@ | |
} | ||
} | ||
|
||
.mat-expansion-panel-hidden { | ||
height: 0; | ||
} | ||
|
||
.mat-expansion-panel-body { | ||
padding: 0 24px 16px; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters