mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
Merge pull request #18908 from cssmonkey/patch-1
Modal.enforceFocus: Use correct variable name (event => e)
This commit is contained in:
commit
880a3c1a86
@ -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