Skip to content

Commit 402d303

Browse files
committed
Use display rather than visibility to remove closed expansion panel content from the flow.
1 parent 15100ed commit 402d303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/expansion/expansion-animations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export const matExpansionAnimations: {
4747

4848
/** Animation that expands and collapses the panel content. */
4949
bodyExpansion: trigger('bodyExpansion', [
50-
state('collapsed', style({height: '0px', visibility: 'hidden'})),
51-
state('expanded', style({height: '*', visibility: 'visible'})),
50+
state('collapsed', style({height: '0px', display: 'none'})),
51+
state('expanded', style({height: '*', display: 'block'})),
5252
transition('expanded <=> collapsed', animate(EXPANSION_PANEL_ANIMATION_TIMING)),
5353
])
5454
};

0 commit comments

Comments
 (0)