A hack fix for blocked popup.

This commit is contained in:
orangemug 2019-10-27 19:11:34 +00:00
parent 8dfc16e7ee
commit 4e3b395b3d

View file

@ -102,6 +102,8 @@ 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.
this.state.inspect._popupBlocked = false;
this.state.inspect.toggleInspector()
}
if(this.props.inspectModeEnabled) {