Interactive interface for browsing global, full-resolution satellite imagery
update mobile date picker state on arrow date change
Ed Platod0f65dd7f7da
diff --git a/web/js/components/timeline/mobile-date-picker.js b/web/js/components/timeline/mobile-date-picker.jsindex 446ebf6e0..96ba70a79 100644--- a/web/js/components/timeline/mobile-date-picker.js+++ b/web/js/components/timeline/mobile-date-picker.js@@ -116,6 +116,14 @@ class MobileDatePicker extends Component {this.setInitDates();}+ componentDidUpdate(prevProps) {+ const { date, endDateLimit } = this.props;+ // update on new endDateLimit or changed date+ if (prevProps.endDateLimit !== endDateLimit || prevProps.date !== date) {+ this.setInitDates();+ }+ }+render() {const {time,