|
|
@@ -3,7 +3,7 @@
|
|
|
* http://github.com/RobinHerbots/jquery.inputmask
|
|
|
* Copyright (c) 2010 - 2015 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 3.2.6-9
|
|
|
+* Version: 3.2.6-10
|
|
|
*/
|
|
|
!function(factory) {
|
|
|
"function" == typeof define && define.amd ? define([ "inputmask.dependencyLib" ], factory) : "object" == typeof exports ? module.exports = factory(require("./inputmask.dependencyLib.jquery")) : factory(window.dependencyLib || jQuery);
|
|
|
@@ -950,7 +950,7 @@
|
|
|
function keypressEvent(e, checkval, writeOut, strict, ndx) {
|
|
|
var input = this, $input = $(input), k = e.which || e.charCode || e.keyCode;
|
|
|
if (!(checkval === !0 || e.ctrlKey && e.altKey) && (e.ctrlKey || e.metaKey || ignorable)) return k === Inputmask.keyCode.ENTER && undoValue !== getBuffer().join("") && (undoValue = getBuffer().join(""),
|
|
|
- e.preventDefault(), setTimeout(function() {
|
|
|
+ setTimeout(function() {
|
|
|
$input.trigger("change");
|
|
|
}, 0)), !0;
|
|
|
if (k) {
|
|
|
@@ -1303,7 +1303,7 @@
|
|
|
action: "mask",
|
|
|
el: el
|
|
|
}));
|
|
|
- }), elems ? elems[0].inputmask || this : this;
|
|
|
+ }), elems && elems[0] ? elems[0].inputmask || this : this;
|
|
|
},
|
|
|
option: function(options) {
|
|
|
return "string" == typeof options ? this.opts[options] : "object" == typeof options ? ($.extend(this.opts, options),
|