Skip to content

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

@BJWiley233

Description

@BJWiley233

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions