Remove focus after cancelling modal

Closes #446
This commit is contained in:
Wesley van der Sanden 2017-10-01 22:21:21 +02:00
parent 98077784ec
commit 9acaa36d8d
2 changed files with 3 additions and 0 deletions

View file

@ -191,6 +191,7 @@ const SettingsPage = createReactClass({
this.setState({
showAddTeamForm: !this.state.showAddTeamForm
});
document.activeElement.blur();
},
setShowTeamFormVisibility(val) {
this.setState({

View file

@ -9,9 +9,11 @@ class TeamListItem extends React.Component {
}
handleTeamRemove() {
document.activeElement.blur();
this.props.onTeamRemove();
}
handleTeamEditing() {
document.activeElement.blur();
this.props.onTeamEditing();
}
render() {