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 108b4a1 commit 3d300d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/view/ObjectDragModeToggleButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export default class ObjectDragModeToggleButton extends RectangularToggleButton<

// RectangularToggleButton options
content: new ToggleNode<ObjectDragMode>( objectDragModeProperty, [
{ value: 'freeDragging', node: freeDraggingNode },
{ value: 'horizontalDragging', node: horizontalDragNode }
{ value: 'freeDragging', createNode: tandem => freeDraggingNode },
{ value: 'horizontalDragging', createNode: tandem => horizontalDragNode }
] ),
baseColor: 'transparent',
disabledColor: 'transparent',
Expand Down

0 comments on commit 3d300d5

Please sign in to comment.