Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@chrisrebert.com>2016-01-01 23:37:52 +0300
committerChris Rebert <code@chrisrebert.com>2016-01-01 23:37:52 +0300
commit422ed9ab48af462bf57db975e844c527cc8554a4 (patch)
tree4aa10f4619e4e4d56cde48618f4982fb500667e9 /js/dist/modal.js
parente9192f6de0d673275f771d160230c540ac9e3a74 (diff)
grunt dist docs
[ci skip]
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r--js/dist/modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js
index a909474818..b600103535 100644
--- a/js/dist/modal.js
+++ b/js/dist/modal.js
@@ -258,7 +258,7 @@ var Modal = (function ($) {
$(document).off(Event.FOCUSIN) // guard against infinite focus loop
.on(Event.FOCUSIN, function (event) {
- if (_this3._element !== event.target && !$(_this3._element).has(event.target).length) {
+ if (document !== event.target && _this3._element !== event.target && !$(_this3._element).has(event.target).length) {
_this3._element.focus();
}
});