Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: dashboard/dashboard/elements/autocomplete-box.html

Issue 2959503002: Enable Polymer.Settings.useNativeShadow on the dashboard. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dashboard/dashboard/elements/chart-container.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | dashboard/dashboard/elements/chart-container.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698