question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

id option for {{power-select}}

See original GitHub issue

I’d like to be able to give the <input> an id in order to link it with a label:

<label for="my-input">...</label>
{{#power-select id="my-input" ... }}..{{/power-select}}

which will put the id onto the <input> element. At the moment the id is put onto the component element (standard ember behavior, so maybe not id but something that is passed along to the <input> element).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
cibernoxcommented, May 11, 2017

Allowing the trigger to have an ID is relatively easy. However making the select gain the focus when a label is clicked is more complex than just adding an ID and will require some thought, but it’s certainly something I’d like to do.

0reactions
john-kurkowskicommented, Jul 12, 2018

Allowing the trigger to have an ID is relatively easy.

Looks like this much was done in #799.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use it - Ember Power Select
The basic component usage is very simple. You must pass the component an onchange action, and either an options collection and/or a search...
Read more >
Ember Power Select - How to Add a Custom Create Option
Ember Power Select - How to Add a Custom Create Option. Advanced select components are great for an enhanced User Experience. Giving the...
Read more >
ember-power-select, How to set a preselected value in ember ...
For prefilled data, you need to specify the options property as well. From the docs: "You can provide both options and a search...
Read more >
Apply tailwindss styles to ember-power-select - Design
Unfortunately, passing class option to the PowerSelect does nothing: ... role="button" tabindex="0" data-ebd-id="ember190-trigger" ...
Read more >
ember-power-select-infinity: Docs & Reviews | Openbase
Some API's declare page=1, others take in the last items ID. Either way, power-select-infinity just provides a loadMore action where you can load...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found