ensure node is defined before calling function on it
This commit is contained in:
parent
47a74dd77b
commit
f4d1b8ba35
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class LoginForm extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
emailInputDidMount(node) {
|
emailInputDidMount(node) {
|
||||||
node.focus()
|
node && node.focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
handleClickOutside = () => {
|
handleClickOutside = () => {
|
||||||
|
|
Loading…
Reference in a new issue