ensure node is defined before calling function on it

This commit is contained in:
Connor Turland 2017-03-17 00:10:32 +00:00
parent 47a74dd77b
commit f4d1b8ba35

View file

@ -19,7 +19,7 @@ class LoginForm extends Component {
}
emailInputDidMount(node) {
node.focus()
node && node.focus()
}
handleClickOutside = () => {