Fix login in edge
Using the button in edge resulted in a page reload and therefore you couldn't login.
This commit is contained in:
parent
bdfde6f25d
commit
9bcaf35e99
|
|
@ -18,7 +18,10 @@ class Login extends Component {
|
||||||
this.setState(state);
|
this.setState(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
login = () => UserAction.login(this.state.username, this.state.password);
|
login = (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
UserAction.login(this.state.username, this.state.password);
|
||||||
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {username, password} = this.state;
|
const {username, password} = this.state;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue