Skip to content

Commit

Permalink
Merge pull request #3287 from cawinkelmann/textfield-select
Browse files Browse the repository at this point in the history
[TextField] Adding the ability to call select on the TextField input
  • Loading branch information
alitaheri committed Mar 12, 2016
2 parents 092f798 + a332c77 commit 8087513
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/TextField/TextField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@ const TextField = React.createClass({
if (this.input) this._getInputNode().focus();
},

select() {
if (this.isMounted()) this._getInputNode().select();
},

getValue() {
return this.input ? this._getInputNode().value : undefined;
},
Expand Down

0 comments on commit 8087513

Please sign in to comment.