From f4753f773fe37695cd09b2f1f8c500828e2173d6 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 11 Jan 2022 12:22:51 +0200 Subject: [PATCH] modal backdrop fix --- client/src/ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); + } } });