diff --git a/package-lock.json b/package-lock.json index 716b19ff..1d6b04e5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8025,9 +8025,9 @@ } }, "mapbox-gl-inspect": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/mapbox-gl-inspect/-/mapbox-gl-inspect-1.3.0.tgz", - "integrity": "sha512-84qABwzuCenZz3oNF8vzqymE5dBoDhEkG5FUdPE2XFXaYabLo4lODRLReMYzeoNPn/4IJFUb9Qy3MN7lGG8CfA==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/mapbox-gl-inspect/-/mapbox-gl-inspect-1.3.1.tgz", + "integrity": "sha512-qkcT8lcYQy2x8wn+BUb6a6YXCEIHeGKHlt01/FSf58yYEmeufuihtbCjN9of2JDQm2XeRGdDEksAH7if7tPyyg==", "requires": { "lodash.isequal": "4.5.0", "randomcolor": "0.4.4" diff --git a/package.json b/package.json index decce6fa..8d25cfdf 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "lodash.isequal": "^4.5.0", "lodash.throttle": "^4.1.1", "mapbox-gl": "^0.44.1", - "mapbox-gl-inspect": "^1.3.0", + "mapbox-gl-inspect": "^1.3.1", "maputnik-design": "github:maputnik/design", "mousetrap": "^1.6.1", "ol-mapbox-style": "^2.10.1", diff --git a/src/components/inputs/AutocompleteInput.jsx b/src/components/inputs/AutocompleteInput.jsx index a81ab513..a633e60d 100644 --- a/src/components/inputs/AutocompleteInput.jsx +++ b/src/components/inputs/AutocompleteInput.jsx @@ -54,7 +54,7 @@ class AutocompleteInput extends React.Component { > - {this.props.children} +
+ {this.props.children} +
} diff --git a/src/components/map/MapboxGlMap.jsx b/src/components/map/MapboxGlMap.jsx index 5dc4e0d0..c65410e3 100644 --- a/src/components/map/MapboxGlMap.jsx +++ b/src/components/map/MapboxGlMap.jsx @@ -121,6 +121,7 @@ export default class MapboxGlMap extends React.Component { showMapPopupOnHover: false, showInspectMapPopupOnHover: true, showInspectButton: false, + blockHoverPopupOnClick: true, assignLayerColor: (layerId, alpha) => { return Color(colors.brightColor(layerId, alpha)).desaturate(0.5).string() }, diff --git a/src/styles/_react-collapse.scss b/src/styles/_react-collapse.scss new file mode 100644 index 00000000..a58dddeb --- /dev/null +++ b/src/styles/_react-collapse.scss @@ -0,0 +1,5 @@ +// See +.react-collapse-container { + position: relative; + overflow: hidden; +} diff --git a/src/styles/index.scss b/src/styles/index.scss index 32735cf4..d72c22ff 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -36,6 +36,7 @@ $toolbar-offset: 0; @import 'zoomproperty'; @import 'popup'; @import 'map'; +@import 'react-collapse'; /** * Hacks for webdriverio isVisibleWithinViewport