Merge pull request #900 from matrix-org/luke/improve-country-dd-4

Add left_aligned class to CountryDropdown
This commit is contained in:
Luke Barnard 2017-05-18 14:38:39 +01:00 committed by GitHub
commit 90ee0c7ad9

View file

@ -115,7 +115,7 @@ export default class CountryDropdown extends React.Component {
// values between mounting and the initial value propgating // values between mounting and the initial value propgating
const value = this.props.value || COUNTRIES[0].iso2; const value = this.props.value || COUNTRIES[0].iso2;
return <Dropdown className={this.props.className} return <Dropdown className={this.props.className + " left_aligned"}
onOptionChange={this._onOptionChange} onSearchChange={this._onSearchChange} onOptionChange={this._onOptionChange} onSearchChange={this._onSearchChange}
menuWidth={298} getShortOption={this._getShortOption} menuWidth={298} getShortOption={this._getShortOption}
value={value} searchEnabled={true} value={value} searchEnabled={true}