]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
enforceFocus event.target - event is undefined 18908/head
authorSean Jones <seany.jones@googlemail.com>
Fri, 15 Jan 2016 12:13:40 +0000 (12:13 +0000)
committerSean Jones <seany.jones@googlemail.com>
Fri, 15 Jan 2016 12:13:40 +0000 (12:13 +0000)
event.target should be e.target within enforceFocus method.

js/modal.js

index 7d98516e754e03d9c161ee9df7c0ff53f58edb1f..f8a2d0943fbb211f5b1a90835ca2581011578da7 100644 (file)
     $(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')