From 422ed9ab48af462bf57db975e844c527cc8554a4 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Fri, 1 Jan 2016 12:37:52 -0800 Subject: grunt dist docs [ci skip] --- js/dist/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/dist/modal.js') diff --git a/js/dist/modal.js b/js/dist/modal.js index a909474818..b600103535 100644 --- a/js/dist/modal.js +++ b/js/dist/modal.js @@ -258,7 +258,7 @@ var Modal = (function ($) { $(document).off(Event.FOCUSIN) // guard against infinite focus loop .on(Event.FOCUSIN, function (event) { - if (_this3._element !== event.target && !$(_this3._element).has(event.target).length) { + if (document !== event.target && _this3._element !== event.target && !$(_this3._element).has(event.target).length) { _this3._element.focus(); } }); -- cgit v1.2.3