diff --git a/client/src/ui.js b/client/src/ui.js index 13d00428c8..4226647ba3 100644 --- a/client/src/ui.js +++ b/client/src/ui.js @@ -388,7 +388,9 @@ define('ui', [], function () { this.$el.on('click.dismiss.bs.modal', (e) => { if (e.target === e.currentTarget) { - return this.backdrop === 'static' ? this.$el[0].focus() : this.close(); + if (this.backdrop !== 'static') { + this.close(); + } } });