Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
feat(Input): Add focus and blur methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kylealwyn committed Sep 11, 2018
1 parent d6e2dfc commit 2d46f80
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Form/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ export default class Input extends React.Component {
this.setState({ height });
}

focus() {
this.input.current.focus();
}

blur() {
this.input.current.blur();
}

render() {
const {
className,
Expand Down

0 comments on commit 2d46f80

Please sign in to comment.