Lose focus on any active element when dragging, resizing or opening settings

[MAILPOET-1811]
This commit is contained in:
Ján Mikláš
2019-05-20 15:47:43 +02:00
committed by Pavel Dohnal
parent ed58ad6ae0
commit 757335bce7
3 changed files with 3 additions and 0 deletions

View File

@@ -241,6 +241,7 @@ Module.BlockToolsView = AugmentedView.extend({
App.getChannel().trigger('hideSettings');
return;
}
document.activeElement.blur();
App.getChannel().trigger('settingsDisplayed', this.model.cid);
(new ViewType(_.extend({ model: this.model }, options || {}))).render();
},