diff options
author | Sean Jones <seany.jones@googlemail.com> | 2016-01-15 15:13:40 +0300 |
---|---|---|
committer | Sean Jones <seany.jones@googlemail.com> | 2016-01-15 15:13:40 +0300 |
commit | 9f2f51073cfbf3d2a4a16a901a60d184cbcfd4c4 (patch) | |
tree | bd21bc7827194eb62fa4d467a102ee808dcf6a89 /js | |
parent | 742d3ebcb5d68873ca16596a79879d55d9df1f21 (diff) |
enforceFocus event.target - event is undefined
event.target should be e.target within enforceFocus method.
Diffstat (limited to 'js')
-rw-r--r-- | js/modal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/modal.js b/js/modal.js index 7d98516e75..f8a2d0943f 100644 --- a/js/modal.js +++ b/js/modal.js @@ -140,7 +140,7 @@ $(document) .off('focusin.bs.modal') // guard against infinite focus loop .on('focusin.bs.modal', $.proxy(function (e) { - if (document !== event.target && + if (document !== e.target && this.$element[0] !== e.target && !this.$element.has(e.target).length) { this.$element.trigger('focus') |