diff options
author | Chris Rebert <code@chrisrebert.com> | 2016-01-01 23:37:52 +0300 |
---|---|---|
committer | Chris Rebert <code@chrisrebert.com> | 2016-01-01 23:37:52 +0300 |
commit | 422ed9ab48af462bf57db975e844c527cc8554a4 (patch) | |
tree | 4aa10f4619e4e4d56cde48618f4982fb500667e9 /js/dist/modal.js | |
parent | e9192f6de0d673275f771d160230c540ac9e3a74 (diff) |
grunt dist docs
[ci skip]
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r-- | js/dist/modal.js | 2 |
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(); } }); |