Skip to content

Commit 4c40899

Browse files
committed
Trigger transition completion even if nothing else happened
1 parent c0087c2 commit 4c40899

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
@@ -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)