mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 18:31:17 +01:00
A hack fix for blocked popup.
This commit is contained in:
parent
8dfc16e7ee
commit
4e3b395b3d
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue