Skip to content

Conversation

@chrizgx
Copy link

@chrizgx chrizgx commented Dec 3, 2025

Description

The problem is well described here: #18529

Visual changes

Functional changes

Improves the UX of searchable selects by immediately displaying a “no results” message when the component has zero options and is preloaded.
Currently, the user must type something before any feedback appears. This update ensures the empty-state message is shown right away, providing clearer guidance.

If this approach is preferred, I can also implement a dedicated message specifically for this scenario.

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

Make use of isPreloaded to decide whether the showNoResultsMessage should be rendered immediately when the dropdown is opened.
@chrizgx chrizgx marked this pull request as ready for review December 3, 2025 22:43
@danharrin danharrin added bug Something isn't working pending review labels Dec 4, 2025
@danharrin danharrin added this to the v4 milestone Dec 4, 2025
Copy link
Member

@danharrin danharrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need a dedicated method for this situation as the current message doesn't make sense when there is no active search.

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Roadmap Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working pending changes

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants