Skip to content

Commit 90f1e74

Browse files
committed
Trigger transition completion even if nothing else happened
1 parent fe86602 commit 90f1e74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plot_api/plot_api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2673,6 +2673,9 @@ Plotly.transition = function(gd, data, layout, traceIndices, transitionConfig) {
26732673
basePlotModules[j].plot(gd, transitionedTraces, traceTransitionConfig, makeCallback);
26742674
}
26752675

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

0 commit comments

Comments
 (0)