Skip to content

Commit

Permalink
Allow dimensions to be strings (segmentio#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
dy authored and Matt Shwery committed Jun 11, 2019
1 parent 78cf402 commit df5bc46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/select-menu/src/SelectMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ export default class SelectMenu extends PureComponent {
/**
* The width of the Select Menu.
*/
width: PropTypes.number,
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),

/**
* The height of the Select Menu.
*/
height: PropTypes.number,
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),

/**
* The options to show in the menu.
Expand Down

0 comments on commit df5bc46

Please sign in to comment.