Skip to content

Commit

Permalink
match inputs focus support
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Lasky committed Aug 15, 2016
1 parent 8897159 commit b7b9141
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/strand-textarea/strand-textarea.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
<dom-module id="strand-textarea">
<link rel="import" type="css" href="strand-textarea.css"/>
<template>
<textarea
<textarea
id="input"
rows="{{rows}}"
class$="{{ _updateClass(error, mono) }}"
placeholder="{{placeholder}}"
Expand Down
8 changes: 8 additions & 0 deletions src/strand-textarea/strand-textarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@
}
},

focus: function() {
this.$.input.focus();
},

blur: function() {
this.$.input.blur();
},

_valueChanged: function(newVal, oldVal) {
if (newVal) {
this.fire("changed", { value: newVal });
Expand Down

0 comments on commit b7b9141

Please sign in to comment.