vendor/assets/javascripts/_inputmask.js in active_frontend-12.2.0 vs vendor/assets/javascripts/_inputmask.js in active_frontend-12.3.0

- old
+ new

@@ -66,11 +66,11 @@ } Inputmask.prototype.listen = function() { if (this.$element.attr("readonly")) return - var pasteEventName = (isIE ? 'paste' : 'input') + ".mask" + var pasteEventName = (isIE ? 'paste' : 'input') + ".bs.inputmask" this.$element .on("unmask.bs.inputmask", $.proxy(this.unmask, this)) .on("focus.bs.inputmask", $.proxy(this.focusEvent, this)) @@ -162,12 +162,12 @@ } }, Inputmask.prototype.unmask = function() { this.$element - .unbind(".mask") - .removeData("inputmask") + .unbind(".bs.inputmask") + .removeData("bs.inputmask") } Inputmask.prototype.focusEvent = function() { this.focusText = this.$element.val() var len = this.mask.length @@ -186,11 +186,13 @@ setTimeout(moveCaret, 50) } Inputmask.prototype.blurEvent = function() { this.checkVal() - if (this.$element.val() !== this.focusText) + if (this.$element.val() !== this.focusText) { this.$element.trigger('change') + this.$element.trigger('input') + } } Inputmask.prototype.keydownEvent = function(e) { var k = e.which \ No newline at end of file