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

Side by Side Diff: ui/webui/resources/cr_elements/v1_0/cr_input/cr_input.js

Issue 1264553002: Re-connect search on MD downloads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dl-misc6
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * `cr-input` is a single-line text field for user input. It is a convenience 7 * `cr-input` is a single-line text field for user input. It is a convenience
8 * element wrapping `paper-input`. 8 * element wrapping `paper-input`.
9 * 9 *
10 * Example: 10 * Example:
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 errorMessage: { 79 errorMessage: {
80 type: String, 80 type: String,
81 value: '', 81 value: '',
82 }, 82 },
83 }, 83 },
84 84
85 /** 85 /**
86 * Focuses the 'input' element. 86 * Focuses the 'input' element.
87 */ 87 */
88 focus: function() { 88 focus: function() {
89 this.$.input.focus(); 89 this.$.input.inputElement.focus();
Dan Beam 2015/07/29 04:40:09 don't we have tests that are supposed to find this
michaelpg 2015/07/30 02:48:16 not yet! We have tests for 1 element: src/chrome/t
90 }, 90 },
91 91
92 /** @override */ 92 /** @override */
93 ready: function() { 93 ready: function() {
94 this.$.events.forward(this.$.input, ['change']); 94 this.$.events.forward(this.$.input, ['change']);
95 }, 95 },
96 }); 96 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698