Move removing focus to TeamList.jsx

Closes #446
This commit is contained in:
Wesley van der Sanden 2017-10-07 14:35:20 +02:00
parent 9acaa36d8d
commit b5bc340f32
2 changed files with 2 additions and 2 deletions

View file

@ -80,10 +80,12 @@ const TeamList = createReactClass({
var self = this;
var teamNodes = this.props.teams.map((team, i) => {
function handleTeamRemove() {
document.activeElement.blur();
self.openServerRemoveModal(i);
}
function handleTeamEditing() {
document.activeElement.blur();
self.handleTeamEditing(team.name, team.url, i);
}

View file

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