Skip to content

Commit

Permalink
Remove menuStyleWithHeight, pass this from SelectField instead
Browse files Browse the repository at this point in the history
  • Loading branch information
George Schneeloch committed Jun 22, 2016
1 parent 57a4298 commit 08aac4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions static/js/components/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,6 @@ class AutoComplete extends Component {
}

this.requestsList = requestsList;
let menuStyleWithHeight = Object.assign({}, menuStyle, {
maxHeight: menuHeight
});

const menu = open && requestsList.length > 0 && (
<Menu
Expand All @@ -453,7 +450,7 @@ class AutoComplete extends Component {
initiallyKeyboardFocused={true}
onItemTouchTap={this.handleItemTouchTap}
onMouseDown={this.handleMouseDown}
style={Object.assign(styles.menu, menuStyleWithHeight)}
style={Object.assign(styles.menu, menuStyle)}
menuHeight={menuHeight}
listStyle={Object.assign(styles.list, listStyle)}
requestsList={requestsList}
Expand Down
1 change: 1 addition & 0 deletions static/js/components/inputs/SelectField.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default class SelectField extends React.Component {
static defaultProps = {
autocompleteStyleProps: {
menuHeight: 300,
menuStyle: {maxHeight: 300},
fullWidth: true
}
};
Expand Down

0 comments on commit 08aac4e

Please sign in to comment.