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

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: 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..f57604f67a3e77b99cb879e75c2d2594358cc5f5 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();
}
+ setTimeout(function() {
+ this.$['searchBar'].focus();
Sergey Berezin 2017/07/31 18:37:15 Any reason why focus is inside a timeout rather th
ayanaadylova 2017/07/31 18:51:52 Calling focus directly does not actually focus on
Sergey Berezin 2017/07/31 20:31:45 Indeed, I'd prefer an event trigger rather than a
+ }.bind(this), 0);
},
_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