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({ this.setState({
showAddTeamForm: !this.state.showAddTeamForm showAddTeamForm: !this.state.showAddTeamForm
}); });
document.activeElement.blur();
}, },
setShowTeamFormVisibility(val) { setShowTeamFormVisibility(val) {
this.setState({ this.setState({

View file

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