We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7325807 commit 1cccba5Copy full SHA for 1cccba5
inst/htmlwidgets/plotly.js
@@ -289,6 +289,12 @@ HTMLWidgets.widget({
289
);
290
});
291
graphDiv.on('plotly_selected', function(d) {
292
+ // If 'plotly_selected' has already been fired, and you click
293
+ // on the plot afterwards, this event fires `undefined`?!?
294
+ // That might be considered a plotly.js bug, but it doesn't make
295
+ // sense for this input change to occur if `d` is falsy because,
296
+ // even in the empty selection case, `d` is truthy (an object),
297
+ // and the 'plotly_deselect' event will reset this input
298
if (d) {
299
Shiny.onInputChange(
300
".clientValue-plotly_selected-" + x.source,
0 commit comments