Skip to content

Commit

Permalink
plotly.js fix bug when crosstalk filter keys are null
Browse files Browse the repository at this point in the history
  • Loading branch information
casperhart committed Apr 23, 2022
1 parent e6cc271 commit f72277e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* `ggplotly()` now correctly handles `geom_tile()` with no `fill` aesthetic. (#2063)
* `ggplotly()` now respects `guide(aes = "none")` (e.g., `guide(fill = "none")`) when constructing legend entries. (#2067)
* Fixed an issue with translating `GGally::ggcorr()` via `ggplotly()`. (#2012)
* Fixed an issue where clearing a crosstalk filter would raise an error in the JS console (#2087)

## Improvements

Expand Down
2 changes: 1 addition & 1 deletion inst/htmlwidgets/plotly.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,9 @@ TraceManager.prototype.updateFilter = function(group, keys) {
traces.push(trace);
}
}
this.gd.data = traces;
}

this.gd.data = traces;
Plotly.redraw(this.gd);

// NOTE: we purposely do _not_ restore selection(s), since on filter,
Expand Down

0 comments on commit f72277e

Please sign in to comment.