0
0
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:
Chris Rebert 2016-01-15 17:45:50 -08:00
commit 880a3c1a86

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