Skip to content

Commit 364c258

Browse files
committed
fix 6266 - handle undefined _bgRect in sankey
1 parent a4038e3 commit 364c258

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/traces/sankey/base_plot.js

Lines changed: 1 addition & 0 deletions
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)