Merge pull request #607 from wvds/GH-446

Remove focus after cancelling modal
This commit is contained in:
Yuya Ochiai 2017-10-07 22:10:14 +09:00 committed by GitHub
commit 85a1b34081
3 changed files with 5 additions and 0 deletions

View file

@ -25,6 +25,8 @@ Release date: TBD
[#573](https://github.com/mattermost/desktop/issues/573)
- Fixed file upload dialogs did not allow any file to be selected.
[#497](https://github.com/mattermost/desktop/issues/497)
- Fixed an issue where unnecessary focus remains after closing dialogs on the settings page.
[#446](https://github.com/mattermost/desktop/issues/446)
#### Windows
- Fixed desktop notifications not working when the window has been minimized from inactive state.

View file

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

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);
}