summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/dialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/framework/dialog.js')
-rw-r--r--addons/web/static/src/js/framework/dialog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/framework/dialog.js b/addons/web/static/src/js/framework/dialog.js
index b5e63834614..cd4540af270 100644
--- a/addons/web/static/src/js/framework/dialog.js
+++ b/addons/web/static/src/js/framework/dialog.js
@@ -137,7 +137,7 @@ var Dialog = Widget.extend({
this.$modal.remove();
setTimeout(function () { // Keep class modal-open (deleted by bootstrap hide fnct) on body to allow scrolling inside the modal
- var modals = $('body > .modal');
+ var modals = $('body > .modal').filter(':visible');
if(modals.length) {
modals.last().focus();
$('body').addClass('modal-open');