| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @license | 2 @license |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --> | 9 --> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 See `Polymer.PaperInputContainer` for a list of custom properties used to | 32 See `Polymer.PaperInputContainer` for a list of custom properties used to |
| 33 style this element. | 33 style this element. |
| 34 --> | 34 --> |
| 35 | 35 |
| 36 <dom-module id="paper-textarea"> | 36 <dom-module id="paper-textarea"> |
| 37 <template> | 37 <template> |
| 38 <style> | 38 <style> |
| 39 :host { | 39 :host { |
| 40 display: block; | 40 display: block; |
| 41 } | 41 } |
| 42 |
| 43 :host([hidden]) { |
| 44 display: none !important; |
| 45 } |
| 42 </style> | 46 </style> |
| 43 | 47 |
| 44 <paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label
="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[
autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]"> | 48 <paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label
="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[
autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]"> |
| 45 | 49 |
| 46 <label hidden$="[[!label]]">[[label]]</label> | 50 <label hidden$="[[!label]]" aria-hidden="true">[[label]]</label> |
| 47 | 51 |
| 48 <iron-autogrow-textarea id="input" class="paper-input-input" | 52 <iron-autogrow-textarea id="input" class="paper-input-input" |
| 49 bind-value="{{value}}" | 53 bind-value="{{value}}" |
| 50 disabled$="[[disabled]]" | 54 disabled$="[[disabled]]" |
| 51 autocomplete$="[[autocomplete]]" | 55 autocomplete$="[[autocomplete]]" |
| 52 autofocus$="[[autofocus]]" | 56 autofocus$="[[autofocus]]" |
| 53 inputmode$="[[inputmode]]" | 57 inputmode$="[[inputmode]]" |
| 54 name$="[[name]]" | 58 name$="[[name]]" |
| 55 placeholder$="[[placeholder]]" | 59 placeholder$="[[placeholder]]" |
| 56 readonly$="[[readonly]]" | 60 readonly$="[[readonly]]" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 129 |
| 126 _ariaDescribedByChanged: function(ariaDescribedBy) { | 130 _ariaDescribedByChanged: function(ariaDescribedBy) { |
| 127 this.$.input.textarea.setAttribute('aria-describedby', ariaDescribedBy); | 131 this.$.input.textarea.setAttribute('aria-describedby', ariaDescribedBy); |
| 128 }, | 132 }, |
| 129 | 133 |
| 130 get _focusableElement() { | 134 get _focusableElement() { |
| 131 return this.$.input.textarea; | 135 return this.$.input.textarea; |
| 132 }, | 136 }, |
| 133 }); | 137 }); |
| 134 </script> | 138 </script> |
| OLD | NEW |