Skip to content

Commit 6844d74

Browse files
committed
Call setInputValue only if it's defined, closes #1624
1 parent 972a4cb commit 6844d74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/htmlwidgets/plotly.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ HTMLWidgets.widget({
296296

297297

298298
// send user input event data to shiny
299-
if (HTMLWidgets.shinyMode) {
299+
if (HTMLWidgets.shinyMode && Shiny.setInputValue) {
300300

301301
// Some events clear other input values
302302
// TODO: always register these?

0 commit comments

Comments
 (0)