Skip to content

searchTreeview behaves strangely #16

@flash0926

Description

@flash0926

According to the sample code, after adding this search function on the server side.
By default, all levels will be expanded and all countries will meet the conditions.
searchTreeview( inputId = "country", pattern = input$search, reveal_results = TRUE )
I think it is the pattern field.
When no search value is entered, the passed pattern is "", and the code will think that this "" can be matched by any string.
I have tried to set it to NA or NULL, but the performance is abnormal.
Setting it to NA is the same as setting it to ""
Setting it to NULL, although it meets expectations in the default state. However, once a search is performed, the performance status will not be refreshed after resetting to NULL.
How to deal with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions