src/components/header/loginform.jsx
@@ -43,7 +43,7 @@ this.setState({ remember: true, username: _user.username, password: '*********', password: _user.password ? '*********' : '', oripassword: _user.password }) } @@ -94,8 +94,15 @@ } componentDidMount () { const input = document.getElementById('username') input && input.focus() const { username, password } = this.state if (username && !password) { const input = document.getElementById('password') input && input.focus() } else { const input = document.getElementById('username') input && input.focus() } } render() {