Skip to content

Commit 639faa2

Browse files
committed
Trigger transition completion even if nothing else happened
1 parent 4ea79b2 commit 639faa2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plot_api/plot_api.js

+3
Original file line numberDiff line numberDiff line change
@@ -2672,6 +2672,9 @@ Plotly.transition = function(gd, data, layout, traceIndices, transitionConfig) {
26722672
basePlotModules[j].plot(gd, transitionedTraces, traceTransitionConfig, makeCallback);
26732673
}
26742674

2675+
// If nothing else creates a callback, then this will trigger the completion in the next tick:
2676+
setTimeout(makeCallback());
2677+
26752678
if(!hasAxisTransition && !hasTraceTransition) {
26762679
return false;
26772680
}

0 commit comments

Comments
 (0)