Commit 4c5174d0 authored by Bailey Berro's avatar Bailey Berro Committed by Commit Bot

Update CrSearchableDropDown to support autofocus

- Updates the CrSearchableDropDown element to support the autofocus property.

Bug: chromium:757625
Change-Id: I2df07bd7dde0a22a7b724c2bd9132c7df321a5fb
Reviewed-on: https://chromium-review.googlesource.com/1196017Reviewed-by: default avatarScott Chen <scottchen@chromium.org>
Commit-Queue: Bailey Berro <baileyberro@chromium.org>
Cr-Commit-Position: refs/heads/master@{#587859}
parent 9674a45e
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
immediately as the user types unless the update-value-on-input flag is immediately as the user types unless the update-value-on-input flag is
explicitly used. --> explicitly used. -->
<cr-input label="[[label]]" on-click="onClick_" value="[[value]]" <cr-input label="[[label]]" on-click="onClick_" value="[[value]]"
on-input="onInput_" id="search"> on-input="onInput_" id="search" autofocus="[[autofocus]]">
</cr-input> </cr-input>
<iron-dropdown horizontal-align="left" vertical-align="top" <iron-dropdown horizontal-align="left" vertical-align="top"
vertical-offset="52"> vertical-offset="52">
......
...@@ -14,6 +14,12 @@ Polymer({ ...@@ -14,6 +14,12 @@ Polymer({
is: 'cr-searchable-drop-down', is: 'cr-searchable-drop-down',
properties: { properties: {
autofocus: {
type: Boolean,
value: false,
reflectToAttribute: true,
},
/** @type {!Array<string>} */ /** @type {!Array<string>} */
items: Array, items: Array,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment