Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f7021e

Browse files
robphoenixMatt Shwery
authored andcommitted
Allow string props in SelectMenuContent dimensions (#594)
This follows on from #579
1 parent d64cd70 commit 5f7021e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/select-menu/src/SelectMenuContent.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export default class SelectMenuContent extends PureComponent {
3131
static propTypes = {
3232
close: PropTypes.func,
3333
title: PropTypes.string,
34-
width: PropTypes.number,
35-
height: PropTypes.number,
34+
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
35+
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3636
headerHeight: PropTypes.number,
3737
options: PropTypes.arrayOf(OptionShapePropType),
3838
hasTitle: PropTypes.bool,

0 commit comments

Comments
 (0)