Skip to content

Commit

Permalink
Remove selected restraint (segmentio#576)
Browse files Browse the repository at this point in the history
* Remove `selected` restraint

* Fix object values errors

* Unroll idx key antipattern
  • Loading branch information
dy authored and Matt Shwery committed Jul 9, 2019
1 parent 8eeffb9 commit cbdb1a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/menu/src/MenuOptionsGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class MenuOptionsGroup extends React.PureComponent {
/**
* The current value of the option group.
*/
selected: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
selected: PropTypes.any,

/**
* Function called when selection changes.
Expand All @@ -39,7 +39,7 @@ class MenuOptionsGroup extends React.PureComponent {
</Heading>
)}
<Pane>
{options.map(option => {
{options.map((option) => {
return (
<MenuOption
key={option.value}
Expand Down

0 comments on commit cbdb1a0

Please sign in to comment.