Skip to content

Commit 9cb6fe5

Browse files
committed
Use display rather than visibility to remove closed expansion panel content from the flow.
1 parent 7857b92 commit 9cb6fe5

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
@@ -53,8 +53,8 @@ export const matExpansionAnimations: {
5353

5454
/** Animation that expands and collapses the panel content. */
5555
bodyExpansion: trigger('bodyExpansion', [
56-
state('collapsed', style({height: '0px', visibility: 'hidden'})),
57-
state('expanded', style({height: '*', visibility: 'visible'})),
56+
state('collapsed', style({height: '0px', display: 'none'})),
57+
state('expanded', style({height: '*', display: 'block'})),
5858
transition('expanded <=> collapsed', animate(EXPANSION_PANEL_ANIMATION_TIMING)),
5959
])
6060
};

0 commit comments

Comments
 (0)