mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Fix resetting cursor style (#2279)
This commit is contained in:
parent
1f3b3edc99
commit
ffb8d7daa8
@ -500,7 +500,7 @@ export default class Mapbox<
|
||||
*/
|
||||
_updateStyle(nextProps: MapboxProps<StyleT>, currProps: MapboxProps<StyleT>): boolean {
|
||||
if (nextProps.cursor !== currProps.cursor) {
|
||||
this._map.getCanvas().style.cursor = nextProps.cursor;
|
||||
this._map.getCanvas().style.cursor = nextProps.cursor || '';
|
||||
}
|
||||
if (nextProps.mapStyle !== currProps.mapStyle) {
|
||||
const {mapStyle = DEFAULT_STYLE, styleDiffing = true} = nextProps;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user