We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d88594f commit 1ab7ad5Copy full SHA for 1ab7ad5
inst/htmlwidgets/plotly.js
@@ -303,7 +303,10 @@ HTMLWidgets.widget({
303
304
// send user input event data to dashR
305
// TODO: make this more consistent with Graph() props?
306
- if (typeof el.setProps === "function") {
+ var dashRwidgets = window.dashRwidgets || {};
307
+ var dashRmode = typeof el.setProps === "function" &&
308
+ typeof dashRwidgets.htmlwidget === "function";
309
+ if (dashRmode) {
310
graphDiv.on('plotly_relayout', function(d) {
311
el.setProps({"input_plotly_relayout": d});
312
});
0 commit comments