Skip to content

Commit cb29441

Browse files
committed
make sure setProps is a function
1 parent 76a9c93 commit cb29441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/htmlwidgets/plotly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ HTMLWidgets.widget({
303303

304304
// send user input event data to dashR
305305
// TODO: make this more consistent with Graph() props?
306-
if (instance.setProps) {
306+
if (typeof instance.setProps === "function") {
307307
graphDiv.on('plotly_relayout', function(d) {
308308
instance.setProps({"input_plotly_relayout": d});
309309
});

0 commit comments

Comments
 (0)