Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 }); |
| OLD | NEW |