Skip to content

Commit

Permalink
paper-autocomplete: don't highlight options by default (#519)
Browse files Browse the repository at this point in the history
Use ember-power-select 1.0.0-beta.23's new `defaultHighlighted` option to override its default highlighting (on open and filter/search) to match AM's behaviour
  • Loading branch information
pauln authored and miguelcobain committed Oct 11, 2016
1 parent f780b54 commit 1d28ae6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions addon/components/paper-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export default PowerSelect.extend({
onfocus: computed.alias('onFocus'),
onblur: computed.alias('onBlur'),

// Don't automatically highlight any option
defaultHighlighted: null,

// Choose highlighted item on key Tab
_handleKeyTab(e) {
let publicAPI = this.get('publicAPI');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"ember-css-transitions": "0.1.5",
"ember-wormhole": "0.4.1",
"ember-basic-dropdown": "^0.16.0",
"ember-power-select": "1.0.0-beta.21",
"ember-power-select": "1.0.0-beta.23",
"virtual-each": "0.3.1"
},
"keywords": [
Expand Down

0 comments on commit 1d28ae6

Please sign in to comment.