Merge pull request #584 from orangemug/fix/issue-576

A hack fix for blocked popup
This commit is contained in:
Orange Mug
2019-10-28 18:18:33 +00:00
committed by GitHub

View File

@@ -100,6 +100,9 @@ export default class MapboxGlMap extends React.Component {
this.updateMapFromProps(this.props);
if(this.props.inspectModeEnabled !== prevProps.inspectModeEnabled) {
// HACK: Fix for <https://github.com/maputnik/editor/issues/576>, while we wait for a proper fix.
// eslint-disable-next-line
this.state.inspect._popupBlocked = false;
this.state.inspect.toggleInspector()
}
if(this.props.inspectModeEnabled) {