crosstalk
crosstalk copied to clipboard
Firefox remembers checkbox state on reload but data no longer filtered by filter_checkbox.
If you reload a page in Firefox, it remembers the state of checkboxes. With filter_checkbox
the state of the filter is not set to match this after the reload.
Apparently this behavior can be prevented in Firefox using <input type="checkbox" autocomplete="off">
.
Steps to reproduce:
- Knit the Rmd document below.
- Load in Firefox.
- Check a checkbox.
- Reload page. Checkbox still checked, but table is not filtered.
---
title: Test
---
```{r}
library(crosstalk)
library(DT)
shared <- SharedData$new(mtcars)
filter_checkbox("f", "cyl", shared, ~cyl)
datatable(shared)
```
PS Thank you for this great package. I am seeing a ton of possibilities.