aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Jones <[email protected]>2016-01-15 12:13:40 +0000
committerSean Jones <[email protected]>2016-01-15 12:13:40 +0000
commit9f2f51073cfbf3d2a4a16a901a60d184cbcfd4c4 (patch)
treebd21bc7827194eb62fa4d467a102ee808dcf6a89
parent742d3ebcb5d68873ca16596a79879d55d9df1f21 (diff)
downloadbootstrap-9f2f51073cfbf3d2a4a16a901a60d184cbcfd4c4.tar.xz
bootstrap-9f2f51073cfbf3d2a4a16a901a60d184cbcfd4c4.zip
enforceFocus event.target - event is undefined
event.target should be e.target within enforceFocus method.
-rw-r--r--js/modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/modal.js b/js/modal.js
index 7d98516e7..f8a2d0943 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')