Skip to content

Commit

Permalink
Merge pull request #25 from rorymadden/optional-autofocus
Browse files Browse the repository at this point in the history
Ability to pass autofocus attribute to paper-chip-input-autocomplete
  • Loading branch information
ThomasCybulski authored Jun 29, 2017
2 parents 0198f1d + 523c80b commit 47e4f78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion paper-chip-input-autocomplete.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}
</style>
<div>
<paper-input id="paperInput" label="[[label]]" on-keyup="_findItems" on-keydown="_keydown" value="{{_inputValue}}" autofocus>
<paper-input id="paperInput" label="[[label]]" on-keyup="_findItems" on-keydown="_keydown" value="{{_inputValue}}" autofocus="{{autofocus}}">
<slot id="slot2" name="input" slot="prefix">
<dom-repeat items="[[_items]]">
<template>
Expand Down Expand Up @@ -101,6 +101,10 @@
type: String,
value: ''
},
autofocus: {
type: Boolean,
value: false
},
_items: {
type: Array,
value: function () {
Expand Down

0 comments on commit 47e4f78

Please sign in to comment.