Add autocomplete to iron-autogrow-textarea elements

Previously, iron-autogrow-textareas did not prompt autocomplete on
mobile devices. With this change, mobile browsers that support
autocomplete will suggest words to the user.

Bug: Issue 4683
Change-Id: I9286b998df95798f88c56f66fd63d731e5a88cc5
This commit is contained in:
Becky Siegel
2016-11-15 13:12:21 -08:00
committed by Andrew Bonventre
parent 01d42968a5
commit 0a59ac2565
7 changed files with 8 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ limitations under the License.
<iron-autogrow-textarea
id="messageInput"
class="message"
autocomplete="on"
placeholder="<Insert reasoning here>"
bind-value="{{message}}"></iron-autogrow-textarea>
</div>

View File

@@ -71,6 +71,7 @@ limitations under the License.
<iron-autogrow-textarea
id="messageInput"
class="message"
autocomplete="on"
rows="4"
max-rows="15"
bind-value="{{message}}"></iron-autogrow-textarea>

View File

@@ -55,8 +55,9 @@ limitations under the License.
</label>
<iron-autogrow-textarea
id="messageInput"
max-rows="15"
class="message"
autocomplete="on"
max-rows="15"
bind-value="{{message}}"></iron-autogrow-textarea>
</div>
</gr-confirm-dialog>

View File

@@ -199,6 +199,7 @@ limitations under the License.
<iron-autogrow-textarea
id="textarea"
class="message"
autocomplete="on"
placeholder="Say something..."
disabled="{{disabled}}"
rows="4"

View File

@@ -179,6 +179,7 @@ limitations under the License.
<iron-autogrow-textarea
id="editTextarea"
class="editMessage"
autocomplete="on"
disabled="{{disabled}}"
rows="4"
bind-value="{{_messageText}}"

View File

@@ -109,6 +109,7 @@ limitations under the License.
<span class="value">
<iron-autogrow-textarea
id="newKey"
autocomplete="on"
bind-value="{{_newKey}}"
placeholder="New SSH Key"></iron-autogrow-textarea>
</span>

View File

@@ -43,6 +43,7 @@ limitations under the License.
</div>
<div class="editor" hidden$="[[!editing]]">
<iron-autogrow-textarea
autocomplete="on"
bind-value="{{_newContent}}"
disabled="[[disabled]]"></iron-autogrow-textarea>
<div class="editButtons">