Skip to content

Commit

Permalink
Use GroupItemOptions for ToggleNode, see phetsims/sun#798
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Oct 11, 2022
1 parent a3b927c commit f21ccb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/view/SpectrometerAccordionBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ class TitleNode extends ToggleNode<boolean> {
} ), alignBoxOptions );

const items = [
{ value: true, node: titleExpandedText },
{ value: false, node: titleCollapsedText }
{ value: true, createNode: ( tandem: Tandem ) => titleExpandedText },
{ value: false, createNode: ( tandem: Tandem ) => titleCollapsedText }
];

super( expandedProperty, items, {
Expand Down

0 comments on commit f21ccb8

Please sign in to comment.