Skip to content

Section index or id information in callbacks #451

Open
@samsch

Description

@samsch

When using multiSection, onSuggestionSelected provides the suggestionIndex and sectionIndex information, which is useful when using list with similar items in multiple sections, where you can't identify the section from the suggestion item.

Could this functionality be expanded to optionally include a section ID and be added to onSuggestionHighlighted and inputProps.onBlur? For the first part, another optional getSectionId callback prop could be added, which would be similar to getSectionSuggestions. Adding the functionality to onSuggestionHighlighted and inputProps.onBlur should just mean adding suggestionIndex, sectionIndex, and sectionId to their object arguments (as far as the API is concerned anyway).

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