fix(form/Select): set a minimum width (#1080)

This commit is contained in:
Pierre Donias
2016-06-17 15:23:45 +02:00
committed by Julien Fontanet
parent b173dc1f28
commit 6694977b87

View File

@@ -10,6 +10,10 @@ const SELECT_MENU_STYLE = {
overflow: 'hidden'
}
const SELECT_STYLE = {
minWidth: '10em'
}
// See: https://github.com/bvaughn/react-virtualized-select/blob/master/source/VirtualizedSelect/VirtualizedSelect.js
@propTypes({
maxHeight: propTypes.number,
@@ -99,6 +103,7 @@ export default class Select extends Component {
{...this.props}
menuRenderer={this._renderMenu}
menuStyle={SELECT_MENU_STYLE}
style={SELECT_STYLE}
/>
)
}