From b9fa09d26af3165390ba0d7a23730031f10e326b Mon Sep 17 00:00:00 2001 From: Steve Willard Date: Thu, 7 Jul 2016 15:35:03 -0400 Subject: [PATCH] [SelectField] Add maxHeight prop to pass down to DropDownMenu --- src/SelectField/SelectField.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SelectField/SelectField.js b/src/SelectField/SelectField.js index 2dd0356f29e8ad..5f43741e7dfaea 100644 --- a/src/SelectField/SelectField.js +++ b/src/SelectField/SelectField.js @@ -84,6 +84,10 @@ class SelectField extends Component { * Override the label style when the select field is inactive. */ labelStyle: PropTypes.object, + /** + * Override the default max-height of the underlying `DropDownMenu` element. + */ + maxHeight: PropTypes.number, /** * Override the inline-styles of the underlying `DropDownMenu` element. */ @@ -161,6 +165,7 @@ class SelectField extends Component { hintText, fullWidth, errorText, + maxHeight, menuStyle, onFocus, onBlur, @@ -200,6 +205,7 @@ class SelectField extends Component { autoWidth={autoWidth} value={value} onChange={onChange} + maxHeight={maxHeight} > {children}