From 6844d74e34c0a021ba171ee0b1b3a337577d93ae Mon Sep 17 00:00:00 2001 From: Carson Date: Mon, 23 Sep 2019 14:21:41 -0500 Subject: [PATCH] Call setInputValue only if it's defined, closes #1624 --- inst/htmlwidgets/plotly.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/htmlwidgets/plotly.js b/inst/htmlwidgets/plotly.js index d1efe9c264..0662cbd1a8 100644 --- a/inst/htmlwidgets/plotly.js +++ b/inst/htmlwidgets/plotly.js @@ -296,7 +296,7 @@ HTMLWidgets.widget({ // send user input event data to shiny - if (HTMLWidgets.shinyMode) { + if (HTMLWidgets.shinyMode && Shiny.setInputValue) { // Some events clear other input values // TODO: always register these?