Skip to content

Commit c2c4d94

Browse files
Merge pull request #4645 from stevewillard/patch-4
[SelectField] Add maxHeight prop to pass down to DropDownMenu
2 parents 6d7a4ad + b9fa09d commit c2c4d94

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/SelectField/SelectField.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ class SelectField extends Component {
8484
* Override the label style when the select field is inactive.
8585
*/
8686
labelStyle: PropTypes.object,
87+
/**
88+
* Override the default max-height of the underlying `DropDownMenu` element.
89+
*/
90+
maxHeight: PropTypes.number,
8791
/**
8892
* Override the inline-styles of the underlying `DropDownMenu` element.
8993
*/
@@ -161,6 +165,7 @@ class SelectField extends Component {
161165
hintText,
162166
fullWidth,
163167
errorText,
168+
maxHeight,
164169
menuStyle,
165170
onFocus,
166171
onBlur,
@@ -200,6 +205,7 @@ class SelectField extends Component {
200205
autoWidth={autoWidth}
201206
value={value}
202207
onChange={onChange}
208+
maxHeight={maxHeight}
203209
>
204210
{children}
205211
</DropDownMenu>

0 commit comments

Comments
 (0)