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

Show placeholder in form select fields #6637

Merged
merged 1 commit into from
Sep 5, 2022
Merged

Conversation

fjahn
Copy link
Contributor

@fjahn fjahn commented Sep 5, 2022

The documentation for select fields says that the placeholder is used for the 'non-selectable placeholder text'. Currently, the value does not do anything for fieldtypes in forms. The placeholder text for those currently is hardcoded with {{ trans key="Please select..." }}.

I believe that the value from placeholder should be used instead (if available).

If the placeholder is not set, use the hardcoded 'Please select...'
Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

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

In the CP there's no "Please select...", it's just blank, so that's what I would have expected to happen here.

But since we already have this saying "Please select" on the front-end, we shouldn't remove it.

This PR looks good. 👍

@jasonvarga jasonvarga merged commit 646cc9d into statamic:3.3 Sep 5, 2022
@fjahn fjahn deleted the patch-1 branch September 5, 2022 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants