diff --git a/inst/htmlwidgets/plotly.js b/inst/htmlwidgets/plotly.js index 97980a7e64..542c6ff374 100644 --- a/inst/htmlwidgets/plotly.js +++ b/inst/htmlwidgets/plotly.js @@ -430,7 +430,7 @@ HTMLWidgets.widget({ traceManager.updateFilter(set, e.value); }; filter.on("change", filterChange); - + if (filter.invokeChangeHandler) filter.invokeChangeHandler(); var selectionChange = function(e) { @@ -486,6 +486,7 @@ HTMLWidgets.widget({ } } selection.on("change", selectionChange); + if (selection.invokeChangeHandler) selection.invokeChangeHandler(); // Set a crosstalk variable selection value, triggering an update var turnOn = function(e) {