Skip to content

Commit 35d0699

Browse files
committed
clear mathjax promises in dragtail
1 parent b0d1af2 commit 35d0699

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plots/cartesian/dragbox.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ var setCursor = require('../../lib/setcursor');
2222
var dragElement = require('../../components/dragelement');
2323
var FROM_TL = require('../../constants/alignment').FROM_TL;
2424

25+
var Plots = require('../plots');
26+
2527
var doTicks = require('./axes').doTicks;
2628
var getFromId = require('./axis_ids').getFromId;
2729
var prepSelect = require('./select');
@@ -655,7 +657,7 @@ module.exports = function dragBox(gd, plotinfo, x, y, w, h, ns, ew) {
655657
// be repositioning the data in the relayout. But DON'T call
656658
// ticksAndAnnotations again - it's unnecessary and would overwrite `updates`
657659
updateSubplots([0, 0, pw, ph]);
658-
Plotly.relayout(gd, updates);
660+
Plots.previousPromises(gd).then(function() { Plotly.relayout(gd, updates); });
659661
}
660662

661663
// updateSubplots - find all plot viewboxes that should be

0 commit comments

Comments
 (0)