From 4e3b395b3d73b7159e1c790103c2ae24412e2dce Mon Sep 17 00:00:00 2001 From: orangemug Date: Sun, 27 Oct 2019 19:11:34 +0000 Subject: [PATCH 1/2] A hack fix for blocked popup. --- src/components/map/MapboxGlMap.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/map/MapboxGlMap.jsx b/src/components/map/MapboxGlMap.jsx index d5b221f..9ff1e2c 100644 --- a/src/components/map/MapboxGlMap.jsx +++ b/src/components/map/MapboxGlMap.jsx @@ -102,6 +102,8 @@ export default class MapboxGlMap extends React.Component { this.updateMapFromProps(this.props); if(this.props.inspectModeEnabled !== prevProps.inspectModeEnabled) { + // HACK: Fix for , while we wait for a proper fix. + this.state.inspect._popupBlocked = false; this.state.inspect.toggleInspector() } if(this.props.inspectModeEnabled) { From a958ec943b6b19806c30b54773b8afc34c564db8 Mon Sep 17 00:00:00 2001 From: orangemug Date: Sun, 27 Oct 2019 19:16:13 +0000 Subject: [PATCH 2/2] Lint fix. --- src/components/map/MapboxGlMap.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/map/MapboxGlMap.jsx b/src/components/map/MapboxGlMap.jsx index 9ff1e2c..47da26a 100644 --- a/src/components/map/MapboxGlMap.jsx +++ b/src/components/map/MapboxGlMap.jsx @@ -103,6 +103,7 @@ export default class MapboxGlMap extends React.Component { if(this.props.inspectModeEnabled !== prevProps.inspectModeEnabled) { // HACK: Fix for , while we wait for a proper fix. + // eslint-disable-next-line this.state.inspect._popupBlocked = false; this.state.inspect.toggleInspector() }