Remove componentWillReceiveProps from search
[MAILPOET-2133]
This commit is contained in:
@@ -12,8 +12,12 @@ class ListingSearch extends React.Component {
|
|||||||
this.onChange = this.onChange.bind(this);
|
this.onChange = this.onChange.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
componentDidUpdate(prevProps) {
|
||||||
this.setState({ search: nextProps.search });
|
if (prevProps.search !== this.props.search) {
|
||||||
|
setImmediate(() => {
|
||||||
|
this.setState({ search: this.props.search });
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onChange(e) {
|
onChange(e) {
|
||||||
|
Reference in New Issue
Block a user