Interactive interface for browsing global, full-resolution satellite imagery
WV-2098 "Add layers" issue in Android 11 when in portrait mode. (#3789)
Jason Hurley50ecdc2fc2d2
diff --git a/web/js/containers/modal.js b/web/js/containers/modal.jsindex 5569975ee..779483336 100644--- a/web/js/containers/modal.js+++ b/web/js/containers/modal.js@@ -42,7 +42,6 @@ class ModalContainer extends Component {id,isOpen,customProps,- orientation,isMobile,screenHeight,screenWidth,@@ -55,12 +54,11 @@ class ModalContainer extends Component {desktopOnly,} = newProps;- const orientationChanged = orientation !== prevProps.orientation;const screenHeightChanged = screenHeight !== prevProps.screenHeight;const screenWidthChanged = screenWidth !== prevProps.screenWidth;const toggleFunction = toggleWithClose(onToggle, onClose, isOpen);if (isMobile && isOpen) {- if (desktopOnly || orientationChanged) {+ if (desktopOnly) {toggleFunction();}if (customProps.mobileFullScreen && (screenHeightChanged || screenWidthChanged)) {