Skip to content

Commit

Permalink
[AutoComplete] Proxy focus/blur calls to refs.searchTextField
Browse files Browse the repository at this point in the history
Allows focusing/blurring auto-complete text input, nice for e.g. search
toggles.
  • Loading branch information
pdf committed Mar 1, 2016
1 parent 9e0b348 commit 3382992
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/auto-complete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,14 @@ const AutoComplete = React.createClass({
}
},

blur() {
this.refs.searchTextField.blur();
},

focus() {
this.refs.searchTextField.focus();
},

render() {
const {
anchorOrigin,
Expand Down

0 comments on commit 3382992

Please sign in to comment.