Skip to content

[EuiSelectable]: should onSearch also return visibleOptions list? #5165

@eeston

Description

@eeston

Hello,

I'm currently doing some work with EuiSelectable and it seems that there's no way to return the visibleOptions list on each keystroke via onSearch? It only returns the string in the user has entered.

Is there any other way to access the visibleOptions list? (with incremental: true)?

I've played around with some of the EUI code locally and it seems like this can be fixed by changing this line to something like this.props.searchProps.onSearch({searchValue, visibleOptions}); I'll raise a PR to get the ball rolling but happy to discuss other options here...

Ta,
John

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