Skip to content

Commit f72277e

Browse files
committed
plotly.js fix bug when crosstalk filter keys are null
1 parent e6cc271 commit f72277e

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
@@ -11,6 +11,7 @@
1111
* `ggplotly()` now correctly handles `geom_tile()` with no `fill` aesthetic. (#2063)
1212
* `ggplotly()` now respects `guide(aes = "none")` (e.g., `guide(fill = "none")`) when constructing legend entries. (#2067)
1313
* Fixed an issue with translating `GGally::ggcorr()` via `ggplotly()`. (#2012)
14+
* Fixed an issue where clearing a crosstalk filter would raise an error in the JS console (#2087)
1415

1516
## Improvements
1617

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)