-
Notifications
You must be signed in to change notification settings - Fork 579
Description
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.