Skip to content

Commit

Permalink
Issue mui#3359
Browse files Browse the repository at this point in the history
* AutoComplete treats nextProps the way TextField does.
* Addresses mui#3359
* closes mui#3359
  • Loading branch information
sameeri committed Apr 13, 2016
1 parent 730d31a commit 00a26f9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/AutoComplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,9 @@ class AutoComplete extends React.Component {
}

componentWillReceiveProps(nextProps) {
if (this.props.searchText !== nextProps.searchText) {
this.setState({
searchText: nextProps.searchText,
});
}
this.setState({
searchText: nextProps.searchText,
});
}

componentWillUnmount() {
Expand Down

0 comments on commit 00a26f9

Please sign in to comment.