Skip to content

Commit 484db06

Browse files
JustinCCYapchschan
authored andcommitted
VIS-1064: fix PPT exporting issue (#17)
* Candidate fix * Bump version
1 parent ed95dc7 commit 484db06

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

theSrc/scripts/widgetdefinition.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,12 @@ const widgetDefinition = {
179179
}
180180

181181
// Trigger plotly.js calls defined via `plotlyProxy()`
182-
plot.then(function() {
182+
plot.catch(function() {
183+
// Used by Displayr to determine when widget is ready to be snapshot for testing
184+
graphDiv.setAttribute("rhtmlwidget-status", "ready");
185+
}).then(function() {
186+
// Used by Displayr to determine when widget is ready to be snapshot for testing
187+
graphDiv.setAttribute("rhtmlwidget-status", "ready");
183188
if (HTMLWidgets.shinyMode) {
184189
Shiny.addCustomMessageHandler("plotly-calls", function(msg) {
185190
var gd = document.getElementById(msg.id);

0 commit comments

Comments
 (0)