Skip to content

Commit

Permalink
fix(Select): minWidth of popupContent
Browse files Browse the repository at this point in the history
  • Loading branch information
bindoon committed Oct 29, 2018
1 parent 9c76451 commit f6a4883
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/select/base.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export default class Base extends React.Component {
const menuProps = {
ref: this.saveMenuRef,
children,
style: autoWidth ? { width: this.width } : {minWidth: this.width},
style: autoWidth ? { width: this.width } : { minWidth: this.width },
selectedKeys,
focusedKey: highlightKey,
focusable: false,
Expand Down Expand Up @@ -507,7 +507,7 @@ export default class Base extends React.Component {
}

beforeOpen() {
const {value, highlightKey} = this.state;
const { value, highlightKey } = this.state;
if (this.props.mode === 'single' && !value && !highlightKey) {
this.setFirstHightLightKeyForMenu();
}
Expand Down Expand Up @@ -559,7 +559,7 @@ export default class Base extends React.Component {

return (<Popup {..._props} trigger={this.renderSelect()} ref={this.savePopupRef}>
{popupContent ?
<div className={`${prefix}select-popup-wrap`} style={autoWidth ? { width: this.width } : {minWidth: this.width}}>
<div className={`${prefix}select-popup-wrap`} style={autoWidth ? { width: this.width } : {}}>
{popupContent}
</div> : this.renderMenu()}
</Popup>);
Expand Down

0 comments on commit f6a4883

Please sign in to comment.