Skip to content

[EuiSearchBar] Field value selection filter option to disable auto sort #7955

@tgalfin

Description

@tgalfin

Is your feature request related to a problem? Please describe.
Eui search bar field value selection filter dropdowns currently automatically sort checked items to the top. I small lists with 3-4 items, it's frustrating to have items jump around.

Describe the solution you'd like
It would be great to have an option on a field value selection filter to disable this default auto sort behavior.

Describe alternatives you've considered
There are no alternatives I can think of

Desired timeline
I was able to fix this on my fork of eui, such that you can optionally disable it. When disabled, it produces the desired result pictured below, but the default behavior remains unchanged if you don't specify the option (selected will sort to the top)
image

Would you be willing to accept a PR to add an optional configuration property to disable auto sort for field value selection filters?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedThe EUI team is unlikely prioritize. (Don't delete - used for automation)

    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