|
|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
|
* Copyright (c) 2010 - 2017 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 4.0.0-61
|
|
|
+* Version: 4.0.0-62
|
|
|
*/
|
|
|
|
|
|
!function(factory) {
|
|
|
@@ -1016,7 +1016,7 @@
|
|
|
var $input = $(this), input = this;
|
|
|
if (input.inputmask) {
|
|
|
var nptValue = input.inputmask._valueGet(), buffer = getBuffer().slice();
|
|
|
- "" !== nptValue && (opts.clearMaskOnLostFocus && (-1 === getLastValidPosition() && nptValue === getBufferTemplate().join("") ? buffer = [] : clearOptionalTail(buffer)),
|
|
|
+ "" === nptValue && colorMask === undefined || (opts.clearMaskOnLostFocus && (-1 === getLastValidPosition() && nptValue === getBufferTemplate().join("") ? buffer = [] : clearOptionalTail(buffer)),
|
|
|
!1 === isComplete(buffer) && (setTimeout(function() {
|
|
|
$input.trigger("incomplete");
|
|
|
}, 0), opts.clearIncomplete && (resetMaskSet(), buffer = opts.clearMaskOnLostFocus ? [] : getBufferTemplate().slice())),
|