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

[Bug]: filter state changes on app start #577

Open
3 tasks done
chlebowa opened this issue Apr 16, 2024 · 0 comments
Open
3 tasks done

[Bug]: filter state changes on app start #577

chlebowa opened this issue Apr 16, 2024 · 0 comments
Labels
bug Something isn't working core

Comments

@chlebowa
Copy link
Contributor

What happened?

When specifying initial filters, enumerating factor levels in a non-alphabetical order causes the app to change the filter state, which results in filter state history before the user changes the filter.

library(teal)

filter <- teal_slices(
  teal_slice("i", "Species", selected = c("virginica", "versicolor"))
)

data <- teal_data() |> within({
  i <- iris
  m <- mtcars
  f <- faithful
})
app <- init(data, example_module(), filter)

runApp(app)

image

After changing filter to

filter <- teal_slices(
  teal_slice("i", "Species", selected = c("versicolor", "virginica"))
)

image

sessionInfo()

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.
@chlebowa chlebowa added the bug Something isn't working label Apr 16, 2024
@chlebowa chlebowa changed the title [Bug]: <title> [Bug]: filter state changes on app start Apr 17, 2024
@m7pr m7pr added the core label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core
Projects
None yet
Development

No branches or pull requests

2 participants