Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

reapply breadcrumbs to product picker #1782

Benjamin King1b93031a2ce5
diff --git a/web/js/components/layer/product-picker/header.js b/web/js/components/layer/product-picker/header.js
index da5b1c37a..e74a68807 100644
--- a/web/js/components/layer/product-picker/header.js
+++ b/web/js/components/layer/product-picker/header.js
@@ -31,7 +31,8 @@ class ProductPickerHeader extends React.Component {
* Go back to original screen
* @method revertToInitialScreen
*/
- revertToInitialScreen() {
+ revertToInitialScreen(e) {
+ e.preventDefault();
this.props.updateListState('category');
this.setState({ inputValue: '' });
}
@@ -41,15 +42,8 @@ class ProductPickerHeader extends React.Component {
}
render() {
const isAutoFocus = !util.browser.touchDevice;
- const {
- modalView,
- selectedProjection,
- listType,
- category,
- width
- } = this.props;
+ const { selectedProjection, listType, category, width } = this.props;
const isBreadCrumb =
- !modalView &&
selectedProjection === 'geographic' &&
listType !== 'category' &&
width > 650;
diff --git a/web/js/components/layer/product-picker/product-picker.js b/web/js/components/layer/product-picker/product-picker.js
index ac997a585..e318dd27e 100644
--- a/web/js/components/layer/product-picker/product-picker.js
+++ b/web/js/components/layer/product-picker/product-picker.js
@@ -124,7 +124,6 @@ class ProductPicker extends React.Component {
categoryType,
category,
inputValue,
- width,
selectedMeasurement
} = this.state;
const {
@@ -139,6 +138,7 @@ class ProductPicker extends React.Component {
layerConfig,
modalView,
height,
+ width,
onToggle
} = this.props;
const isCategoryDisplay =