diff --git a/.gitignore b/.gitignore index c2658d7..e8682ae 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules/ +/.idea \ No newline at end of file diff --git a/src/main.js b/src/main.js index 5bb5b23..895f641 100644 --- a/src/main.js +++ b/src/main.js @@ -27,13 +27,13 @@ class Geocoder extends Component { this.onResult = this.onResult.bind(this); } - componentWillMount() { + UNSAFE_componentWillMount() { this.setState({ inputValue: this.props.defaultInputValue }); } componentDidMount() { if (this.props.focusOnMount) ReactDOM.findDOMNode(this.refs.input).focus(); } - componentWillReceiveProps(props) { + UNSAFE_componentWillReceiveProps(props) { if (props.defaultInputValue !== this.props.inputValue) { this.setState({ inputValue: props.defaultInputValue }); }