Skip to content

Commit 01582b8

Browse files
authored
plotly.js fix bug when crosstalk filter keys are null (#2087)
1 parent 2a19776 commit 01582b8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* `ggplotly()` now correctly handles `geom_tile()` with no `fill` aesthetic. (#2063)
1616
* `ggplotly()` now respects `guide(aes = "none")` (e.g., `guide(fill = "none")`) when constructing legend entries. (#2067)
1717
* Fixed an issue with translating `GGally::ggcorr()` via `ggplotly()`. (#2012)
18+
* Fixed an issue where clearing a crosstalk filter would raise an error in the JS console (#2087)
1819

1920
## Improvements
2021

inst/htmlwidgets/plotly.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,9 @@ TraceManager.prototype.updateFilter = function(group, keys) {
616616
traces.push(trace);
617617
}
618618
}
619+
this.gd.data = traces;
619620
}
620621

621-
this.gd.data = traces;
622622
Plotly.redraw(this.gd);
623623

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

0 commit comments

Comments
 (0)