Skip to content

Suggestion click to expand? #678

@ShawTim

Description

@ShawTim

I have a long list of suggestions. Even the user types to filter, there is still a long list.
The behavior we are looking for is to render max 10 items for the suggestions by default, and then append ...More... button at the end. Once you click on it, it will expand to 20 items max without closing the suggestion container.

I either treat this button as a special item, or append this button in the renderSuggestionsContainer. But in either case, the container close when you click on any items on the suggestion list.

I tried to add onClick event on the button or the special item, to set a state and check it in onSuggestionSelected and onSuggestionsClearRequested to manage the showing state of the container, but the onClick event doesnt fire.

Looks like there is a related question asked before: #653 , but it doesnt get any answers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions