We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0746f02 commit 0b70607Copy full SHA for 0b70607
src/components/GeoPointEditor/GeoPointEditor.react.js
@@ -33,17 +33,6 @@ export default class GeoPointEditor extends React.Component {
33
this.refs.longitude.addEventListener('keypress', this.handleKeyLongitude);
34
}
35
36
- componentWillReceiveProps(props) {
37
- if (props.value) {
38
- if (props.value.latitude !== this.state.latitude) {
39
- this.setState({ latitude: props.value.latitude });
40
- }
41
- if (props.value.longitude !== this.state.longitude) {
42
- this.setState({ longitude: props.value.longitude });
43
44
45
46
-
47
componentWillUnmount() {
48
this.refs.latitude.removeEventListener('keypress', this.handleKeyLatitude);
49
this.refs.longitude.removeEventListener('keypress', this.handleKeyLongitude);
0 commit comments