Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tgalfin opened this issue Aug 9, 2024 · 2 comments · Fixed by #7958
Closed

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

tgalfin opened this issue Aug 9, 2024 · 2 comments · Fixed by #7958
Labels
feature request help wanted The EUI team is looking for community members to pick up and implement this issue

Comments

@tgalfin
Copy link
Contributor

tgalfin commented Aug 9, 2024

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?

@JasonStoltz JasonStoltz added the help wanted The EUI team is looking for community members to pick up and implement this issue label Aug 12, 2024
@cee-chen
Copy link
Member

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

Absolutely!

Copy link

👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.

@cee-chen cee-chen changed the title Field value selection filter option to disable auto sort [EuiSearchBar] Field value selection filter option to disable auto sort Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request help wanted The EUI team is looking for community members to pick up and implement this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants