We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed95dc7 commit 484db06Copy full SHA for 484db06
theSrc/scripts/widgetdefinition.js
@@ -179,7 +179,12 @@ const widgetDefinition = {
179
}
180
181
// Trigger plotly.js calls defined via `plotlyProxy()`
182
- plot.then(function() {
+ 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
187
188
if (HTMLWidgets.shinyMode) {
189
Shiny.addCustomMessageHandler("plotly-calls", function(msg) {
190
var gd = document.getElementById(msg.id);
0 commit comments