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

Unified Diff: sky/examples/flights-app/app-search-input.sky

Issue 886683002: Add a selection and outline to flights-app. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | sky/examples/flights-app/app-toast.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/flights-app/app-search-input.sky
diff --git a/sky/examples/flights-app/app-search-input.sky b/sky/examples/flights-app/app-search-input.sky
index f87953aa80d1f1f4e4066ea0e1125ab24f84f24b..32bc810f65874b9ea35acb0d05a12dfbbb3910f2 100644
--- a/sky/examples/flights-app/app-search-input.sky
+++ b/sky/examples/flights-app/app-search-input.sky
@@ -22,6 +22,11 @@
</template>
<script>
module.exports = class extends SkyElement {
+ attached() {
+ var sel = window.getSelection();
+ var input = this.shadowRoot.querySelector('t');
+ sel.selectAllChildren(input);
+ }
}.register();
</script>
</sky-element>
« no previous file with comments | « no previous file | sky/examples/flights-app/app-toast.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698