Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox remembers checkbox state on reload but data no longer filtered by filter_checkbox. #131

Open
pfh opened this issue Sep 27, 2022 · 0 comments

Comments

@pfh
Copy link

pfh commented Sep 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant