mirror of
https://github.com/jasny/bootstrap.git
synced 2026-01-22 12:48:10 -05:00
Bind to document instead of 'body'
As per https://github.com/twitter/bootstrap/pull/5308
This commit is contained in:
4
js/bootstrap-inputmask.js
vendored
4
js/bootstrap-inputmask.js
vendored
@@ -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);
|
||||
}(window.jQuery);
|
||||
|
||||
Reference in New Issue
Block a user