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:
parent
742d3ebcb5
commit
9f2f51073c
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user