aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/modal.js b/js/modal.js
index 81766b323..7433de4c8 100644
--- a/js/modal.js
+++ b/js/modal.js
@@ -232,7 +232,7 @@
$target
.modal(option)
.one('hide', function () {
- $this.focus()
+ $this.is(':visible') && $this.focus()
})
})