Skip to content

Commit b1082b0

Browse files
committed
Use display rather than visibility to remove closed expansion panel content from the flow.
1 parent e462f3d commit b1082b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/expansion/expansion-animations.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
89
import {
910
animate,
1011
animateChild,
@@ -53,7 +54,7 @@ export const matExpansionAnimations: {
5354

5455
/** Animation that expands and collapses the panel content. */
5556
bodyExpansion: trigger('bodyExpansion', [
56-
state('collapsed', style({height: '0px', visibility: 'hidden'})),
57+
state('collapsed', style({height: '0px', visibility: 'collapse'})),
5758
state('expanded', style({height: '*', visibility: 'visible'})),
5859
transition('expanded <=> collapsed', animate(EXPANSION_PANEL_ANIMATION_TIMING)),
5960
])

0 commit comments

Comments
 (0)