Skip to content

Commit 22a7a28

Browse files
committed
Use display rather than visibility to remove closed expansion panel content from the flow.
1 parent 5690c87 commit 22a7a28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/expansion/expansion-panel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ export type MatExpansionPanelState = 'expanded' | 'collapsed';
8181
],
8282
animations: [
8383
trigger('bodyExpansion', [
84-
state('collapsed', style({height: '0px', visibility: 'hidden'})),
85-
state('expanded', style({height: '*', visibility: 'visible'})),
84+
state('collapsed', style({height: '0px', display: 'none'})),
85+
state('expanded', style({height: '*', display: 'block'})),
8686
transition('expanded <=> collapsed', animate(EXPANSION_PANEL_ANIMATION_TIMING)),
8787
]),
8888
],

0 commit comments

Comments
 (0)