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

selectInput with selectize = T (Default) removes duplicate values in choices without a warning() #2695

Closed
yogat3ch opened this issue Nov 5, 2019 · 1 comment

Comments

@yogat3ch
Copy link

yogat3ch commented Nov 5, 2019

My specific question was already kindly answered by @wch in #2693. However, it raised an issue around selectize/selectize.js#129 filtering duplicate choices without giving the user a warning or message indicating that it's doing so.

Example application or steps to reproduce the problem

library(shiny)

carrier_choices <- list(
  `Page Plus Cellular (Verizon)` = "number@vzwpix.com",
  `Verizon Wireless` = "number@vzwpix.com"
)
ui <- function(id){
  fluidPage(
    selectInput("b1_carrier", "Carrier", choices = carrier_choices)
  )
}

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

Describe the problem in detail

Note that only the first item shows up because there are duplicate values. If there's a way to warn the developer of this behavior that would probably save them the time trying to figure out where their choices went in a large choice set! 😖

@yogat3ch yogat3ch changed the title selectInput with selectize = T (Default) removes duplicate values in choices without a warning() selectInput with selectize = T (Default) removes duplicate values in choices without a warning() Nov 5, 2019
@yogat3ch
Copy link
Author

yogat3ch commented Apr 1, 2020

Solved in #2693

@yogat3ch yogat3ch closed this as completed Apr 1, 2020
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