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

Remove dead placeholder / prompt param #85

Closed
stephencattaneo opened this issue Jan 6, 2016 · 3 comments
Closed

Remove dead placeholder / prompt param #85

stephencattaneo opened this issue Jan 6, 2016 · 3 comments
Assignees
Milestone

Comments

@stephencattaneo
Copy link

the x-select component code has placeholder yet the the template doesn't take advantage of it.

@Robdel12 Robdel12 self-assigned this Jan 6, 2016
@Robdel12
Copy link
Collaborator

Robdel12 commented Jan 6, 2016

Good catch. This is actually leftover from when we supported a blockless form of the component. If you still would like to do that you can use x-select-blockless.

@Robdel12 Robdel12 changed the title placeholder / prompt param does nothing Remove dead placeholder / prompt param Jan 6, 2016
@stephencattaneo
Copy link
Author

FWIW this change fixes it (app/templates/components/x-select.hbs):

{{#if placeholder}}
  {{#x-option}} {{placeholder}} {{/x-option}}
{{/if}}
{{yield}}

I can make a pull request if you want

@cowboyd
Copy link
Collaborator

cowboyd commented Jan 7, 2016

@stephencattaneo

The philosophy of x-select is to be as thin a wrapper around the native select option as possible. That way, it remains simple, flexible, and clear how to work with it given knowledge of the standard select and option tags.

So would definitely accept a PR to remove the placeholder attribute, but not one to use it in the template.

@Robdel12 Robdel12 modified the milestone: v2.1.0 Jan 14, 2016
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

No branches or pull requests

3 participants