2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00

enforceFocus event.target - event is undefined

event.target should be e.target within enforceFocus method.
This commit is contained in:
Sean Jones
2016-01-15 12:13:40 +00:00
parent 742d3ebcb5
commit 9f2f51073c
+1 -1
View File
@@ -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')