Skip to content

Commit

Permalink
fix 6266 - handle undefined _bgRect in sankey
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Jul 15, 2022
1 parent a4038e3 commit 364c258
Showing 1 changed file with 1 addition and 0 deletions.
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 364c258

Please sign in to comment.