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