Skip to content

Commit 597da12

Browse files
authored
Merge pull request #6267 from plotly/fix-6266
Handle missing drag layer of invisible `sankey` traces to fix select error
2 parents a4038e3 + a440f79 commit 597da12

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: draftlogs/6267_fix.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Handle missing drag layer of invisible `sankey` traces to fix select error [[#6267](https://github.com/plotly/plotly.js/pull/6267)]

Diff for: src/traces/sankey/base_plot.js

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ function subplotUpdateFx(gd, index) {
4848
var dragMode = fullLayout.dragmode;
4949
var cursor = fullLayout.dragmode === 'pan' ? 'move' : 'crosshair';
5050
var bgRect = trace._bgRect;
51+
if(!bgRect) return;
5152

5253
if(dragMode === 'pan' || dragMode === 'zoom') return;
5354

0 commit comments

Comments
 (0)