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

update_autocomplete_input does not work if length for options is 1 unless coercing to list #20

Open
BJWiley233 opened this issue Nov 16, 2020 · 0 comments

Comments

@BJWiley233
Copy link

Hi,

update_autocomplete_input() will not work if the length of the options is 1 unless coercing to list. Then when coercing to list if length is greater than 1 that doesn't work. I am really doing a filter on dataframe that is being passed so the vector can be many or just 1.

Examples that work:
update_autocomplete_input(session, "uniProtID", "UniProt ID:", options = c("Q44455", "P12345"))
update_autocomplete_input(session, "uniProtID", "UniProt ID:", options = list(c("Q44455")))

Examples that don't work:
update_autocomplete_input(session, "uniProtID", "UniProt ID:", options = list(c("Q44455", "P12345")))
update_autocomplete_input(session, "uniProtID", "UniProt ID:", options = c("Q44455"))

Really bizarre.

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