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

selectizeInput option allowEmptyOption = TRUE is ignored (update selectize.js >= 0.12.2 needed) #1837

Closed
mnazarov opened this issue Aug 30, 2017 · 3 comments

Comments

@mnazarov
Copy link

@mnazarov mnazarov commented Aug 30, 2017

I discovered that selectizeInput's option allowEmptyOption = TRUE doesn't work properly.
This is a bug in the selectize.js library version 0.12.1, as described in selectize/selectize.js#739 - and was fixed in the version 0.12.2, so I propose to update the library.

A minimal example to see the issue:

shinyApp(
    ui = selectizeInput("letters", "Letters:", 
        choices  = c("(none)" = "", letters[1:5]), 
        multiple = FALSE, 
        options  = list(allowEmptyOption = TRUE)),
    server = function(input, output) {}
)
@mnazarov mnazarov changed the title selecrizeInput option allowEmptyOption = TRUE is ignored (update selectize.js >= 0.12.2 needed) selectizeInput option allowEmptyOption = TRUE is ignored (update selectize.js >= 0.12.2 needed) Nov 6, 2017
@jakelever
Copy link

@jakelever jakelever commented Feb 23, 2018

+1

@phlogisticfugu
Copy link

@phlogisticfugu phlogisticfugu commented Mar 16, 2018

making a fix for this, as I needed the updated version too

@alandipert
Copy link
Contributor

@alandipert alandipert commented Sep 14, 2018

Thank you, this was fixed by #2028

@alandipert alandipert closed this Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants