From 695b1ccafe163e84ae0af4fbc109d274f7906194 Mon Sep 17 00:00:00 2001 From: Alex Ghiculescu Date: Mon, 31 Dec 2012 15:10:41 +1000 Subject: [PATCH] Bind to document instead of 'body' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As per https://github.com/twitter/bootstrap/pull/5308 --- js/bootstrap-inputmask.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/bootstrap-inputmask.js b/js/bootstrap-inputmask.js index 3740af3c..647829cd 100644 --- a/js/bootstrap-inputmask.js +++ b/js/bootstrap-inputmask.js @@ -350,7 +350,7 @@ * ================== */ $(function () { - $('body').on('focus.inputmask.data-api', '[data-mask]', function (e) { + $(document).on('focus.inputmask.data-api', '[data-mask]', function (e) { var $this = $(this) if ($this.data('inputmask')) return e.preventDefault() @@ -358,4 +358,4 @@ }) }) -}(window.jQuery); \ No newline at end of file +}(window.jQuery);