Skip to content

Commit f1e5e08

Browse files
authored
Merge pull request #6367 from plotly/fix-no-clearSelect-mapbox
Fix mapbox clearOutline calls
2 parents 35fb5b9 + 895ace5 commit f1e5e08

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

draftlogs/6367_fix.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix mapbox clearOutline calls (regression introduced in 2.13.0) [[#6367](https://github.com/plotly/plotly.js/pull/6367)]

src/plots/mapbox/mapbox.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ proto.updateFx = function(fullLayout) {
593593
map.off('click', self.onClickInPanHandler);
594594
if(selectMode(dragMode) || drawMode(dragMode)) {
595595
map.dragPan.disable();
596-
map.on('zoomstart', self.clearSelect);
596+
map.on('zoomstart', self.clearOutline);
597597

598598
self.dragOptions.prepFn = function(e, startX, startY) {
599599
prepSelect(e, startX, startY, self.dragOptions, dragMode);
@@ -602,7 +602,7 @@ proto.updateFx = function(fullLayout) {
602602
dragElement.init(self.dragOptions);
603603
} else {
604604
map.dragPan.enable();
605-
map.off('zoomstart', self.clearSelect);
605+
map.off('zoomstart', self.clearOutline);
606606
self.div.onmousedown = null;
607607
self.div.ontouchstart = null;
608608
self.div.removeEventListener('touchstart', self.div._ontouchstart);

0 commit comments

Comments
 (0)