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

Unified Diff: appengine/config_service/ui/src/config-ui/front-page.html

Issue 2990963002: config_service: focus search bar on page load (Closed)
Patch Set: Change timeout to event listener. Created 3 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/config_service/ui/src/config-ui/front-page.html
diff --git a/appengine/config_service/ui/src/config-ui/front-page.html b/appengine/config_service/ui/src/config-ui/front-page.html
index 409170e640947213c2710c35774abf9bb3fac128..a2f4597c8311ec005c582867a48fe9e2b65b54da 100644
--- a/appengine/config_service/ui/src/config-ui/front-page.html
+++ b/appengine/config_service/ui/src/config-ui/front-page.html
@@ -72,7 +72,8 @@
</iron-ajax>
<div class="search-bar">
- <paper-search-bar
+ <paper-search-bar
+ id = "searchBar"
query="{{query}}"
hide-filter-button="true"></paper-search-bar>
</div>
@@ -149,6 +150,9 @@
} else {
this.$.requestConfigs.generateRequest();
}
+ document.addEventListener('WebComponentsReady', function() {
+ this.$['searchBar'].focus();
+ }.bind(this));
},
_onSignIn: function() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698