Index: dashboard/dashboard/elements/autocomplete-box.html |
diff --git a/dashboard/dashboard/elements/autocomplete-box.html b/dashboard/dashboard/elements/autocomplete-box.html |
index d679ca9856d8b4a08faf3ef819a3411a0ab76e4b..493313b6488f93ebcb0c8fe01124396eee97cddf 100644 |
--- a/dashboard/dashboard/elements/autocomplete-box.html |
+++ b/dashboard/dashboard/elements/autocomplete-box.html |
@@ -144,6 +144,7 @@ property 'group' sets to the header item name. |
on-focus="onFocusInput" |
on-blur="onBlurInput" |
on-keydown="onInputKeydown" |
+ on-keyup="onInputKeyup" |
disabled$="{{disabled}}" |
id="textbox" |
value="{{query::input}}"> |
@@ -358,7 +359,7 @@ property 'group' sets to the header item name. |
}, |
focus() { |
- this.querySelector('input').focus(); |
+ this.$.textbox.focus(); |
}, |
onClickInput() { |
@@ -394,6 +395,10 @@ property 'group' sets to the header item name. |
} |
}, |
+ onInputKeyup(event) { |
+ this.set('query', this.$.textbox.value); |
+ }, |
+ |
scrollLocusIntoView() { |
const elements = this.$.dropdown.items || []; |
for (const element of elements) { |