rstudio / crosstalk

Inter-htmlwidget communication for R (with and without Shiny)
http://rstudio.github.io/crosstalk
Other
288 stars 52 forks source link

filter_select: selecting the `(All)` option results in a javascript error #139

Open daattali opened 1 year ago

daattali commented 1 year ago

Reproducible example (using {crosstalk} v1.2.0):

library(shiny)

df <- data.frame(id = 1:5, num1 = 11:15, num2 = 21:25)
shared_df <- crosstalk::SharedData$new(df, key = ~id, group = 'test')

ui <- fluidPage(
  crosstalk::filter_select("num1", "num1", shared_df, ~num1)
)

server <- function(input, output, session) {}

shinyApp(ui, server)

Every time you select (All), the filter breaks and an error shows up in the javascript console.

andresimi commented 12 months ago

filter_select is not working properly here also. Could you resolve that?