Skip to content

Commit

Permalink
Merge pull request #6267 from plotly/fix-6266
Browse files Browse the repository at this point in the history
Handle missing drag layer of invisible `sankey` traces to fix select error
  • Loading branch information
archmoj authored Jul 15, 2022
2 parents a4038e3 + a440f79 commit 597da12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions draftlogs/6267_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Handle missing drag layer of invisible `sankey` traces to fix select error [[#6267](https://github.com/plotly/plotly.js/pull/6267)]
1 change: 1 addition & 0 deletions src/traces/sankey/base_plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function subplotUpdateFx(gd, index) {
var dragMode = fullLayout.dragmode;
var cursor = fullLayout.dragmode === 'pan' ? 'move' : 'crosshair';
var bgRect = trace._bgRect;
if(!bgRect) return;

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

Expand Down

0 comments on commit 597da12

Please sign in to comment.