Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/multiple.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ class Test extends React.Component {
<input checked={this.state.useAnim} type="checkbox" onChange={this.useAnim} />
</label>
</p>

<div style={{ width: 300 }}>
<Select
value={this.state.value}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"rc-menu": "^7.0.2",
"rc-trigger": "^2.2.0",
"rc-util": "^4.0.4",
"react-lifecycles-compat": "^3.0.2",
"warning": "^3.0.0"
},
"pre-commit": [
Expand Down
7 changes: 1 addition & 6 deletions src/DropdownMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,10 @@ export default class DropdownMenu extends React.Component {

constructor(props) {
super(props);

this.lastInputValue = props.inputValue;
this.saveMenuRef = saveRef(this, 'menuRef');
}

componentWillMount() {
this.lastInputValue = this.props.inputValue;
}

componentDidMount() {
this.scrollActiveItemToView();
this.lastVisible = this.props.visible;
Expand Down Expand Up @@ -142,7 +138,6 @@ export default class DropdownMenu extends React.Component {
if (inputValue !== this.lastInputValue && (!lastValue || lastValue !== backfillValue)) {
activeKeyProps.activeKey = '';
}

return (
<Menu
ref={this.saveMenuRef}
Expand Down
Loading