Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 3e03114

Browse files
phantomessenshahan
authored andcommitted
Only register immediate material expansion panels in a material expansion panel set.
Fixes #318 See issue: #318 PiperOrigin-RevId: 209278799
1 parent 40e6b9b commit 3e03114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/material_expansionpanel/material_expansionpanel_set.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class MaterialExpansionPanelSet implements OnDestroy {
1717
MaterialExpansionPanel _openPanel;
1818
List<MaterialExpansionPanel> _panels;
1919

20-
@ContentChildren(MaterialExpansionPanel)
20+
@ContentChildren(MaterialExpansionPanel, descendants: false)
2121
set panels(List<MaterialExpansionPanel> panels) {
2222
_panels = panels;
2323
_onPanelsChange();

0 commit comments

Comments
 (0)