defaultHighlighted prevents auto-highlighting on search
See original GitHub issueIf you specify a value for defaultHighlighted
, that option remains highlighted even when it’s been filtered out. For example, if you apply defaultHighlighted="New York"
to the first example on the “Action handling” page of the docs, it highlights New York by default:
But then if you start typing, it filters but doesn’t highlight the first match:
You then need to either click an option or press the down arrow to select one - pressing enter
will select the defaultHighlighted
item even though it’s not visible, and pressing tab
will leave the power-select without changing the current selection.
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Word auto-highlighting, how to make it STOP!
I'm trying to highlight a single word or some part of a word for cut&paste operations and Word auto-highlights the whole line and...
Read more >Correct answer: How to stop the auto highlighting of key words ...
Correct answer: How to stop the auto highlighting of key words/phrases when typing a text message? ... Let's gather a few clues to...
Read more >Solved: Searching for words and then Auto-highlighting (ye...
Solved: Hi, I am able to search a document for multiple words with the Find Option; however, I cannot figure out how to...
Read more >Prevent email clients from auto-highlighting email addresses ...
I am looking for a CSS/HTML workaround to prevent email clients such as Outlook and Apple Mail from auto-highlighting an email address in...
Read more >SearchHighlighting - Highlighting of searches via star, auto ...
SearchHighlighting : Highlighting of searches via star, auto-highlighting. script karma, Rating 40/12, Downloaded by 3112, Comments, bugs, improvements, Vim ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For system wide config this may be helpful: http://ember-power-select.com/cookbook
Because that’s not a helper returning a function. You want this:
{{#power-select ... efaultHighlighted=(pw-default-highlight) as |opt|}}
and the helper returns a function