0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01: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

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')