Skip to content

Show no placeholders if a SearchEditor has no suggestions#384

Merged
nilmerg merged 1 commit into
mainfrom
search-editor-placeholders
May 28, 2026
Merged

Show no placeholders if a SearchEditor has no suggestions#384
nilmerg merged 1 commit into
mainfrom
search-editor-placeholders

Conversation

@BastianLedererIcinga
Copy link
Copy Markdown
Contributor

@BastianLedererIcinga BastianLedererIcinga commented May 26, 2026

The placeholders of a SearchEditor currently always state Type to search..., which is rather misleading when an editor is intentionally created without suggestions.

The SearchEditor is adjusted so the placeholders are only shown when suggestions are actually available.

Copy link
Copy Markdown
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

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

Now that I saw which text you want to show instead, I think showing nothing is the better alternative and this proposal should be changed in order to only show the default placeholder if a suggestion url is set.

Your alternative proposals…

  • Enter a column
  • Enter a value

…add nothing useful beyond the information added to tell the user no validation is happening. Let's focus on that to make it useful and really helpful instead of repeating such a generic placeholder like these over and over.

Comment thread src/Control/SearchEditor.php Outdated
When no suggestions are available the placeholders are misleading
Copy link
Copy Markdown
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

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

Now please also update the title of the PR and we're done :P

@BastianLedererIcinga BastianLedererIcinga changed the title Allow customizing placeholders of the SearchEditor Show no placeholders if a SearchEditor has no suggestions May 28, 2026
@nilmerg nilmerg added this to the 0.14.0 milestone May 28, 2026
@nilmerg nilmerg merged commit 93675dc into main May 28, 2026
14 checks passed
@nilmerg nilmerg deleted the search-editor-placeholders branch May 28, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants