|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
|
* Copyright (c) 2010 - 2018 Robin Herbots
|
|
* Copyright (c) 2010 - 2018 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 4.0.1-beta.38
|
|
|
|
|
|
|
+* Version: 4.0.1-beta.39
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
(function(modules) {
|
|
(function(modules) {
|
|
@@ -910,7 +910,7 @@
|
|
|
function maskScope(actionObj, maskset, opts) {
|
|
function maskScope(actionObj, maskset, opts) {
|
|
|
maskset = maskset || this.maskset;
|
|
maskset = maskset || this.maskset;
|
|
|
opts = opts || this.opts;
|
|
opts = opts || this.opts;
|
|
|
- var inputmask = this, el = this.el, isRTL = this.isRTL, undoValue, $el, skipKeyPressEvent = false, skipInputEvent = false, ignorable = false, maxLength, mouseEnter = false, colorMask, originalPlaceholder = "";
|
|
|
|
|
|
|
+ var inputmask = this, el = this.el, isRTL = this.isRTL, undoValue, $el, skipKeyPressEvent = false, skipInputEvent = false, ignorable = false, maxLength, mouseEnter = false, colorMask, originalPlaceholder;
|
|
|
function getMaskTemplate(baseOnInput, minimalPos, includeMode, noJit, clearOptionalTail) {
|
|
function getMaskTemplate(baseOnInput, minimalPos, includeMode, noJit, clearOptionalTail) {
|
|
|
var greedy = opts.greedy;
|
|
var greedy = opts.greedy;
|
|
|
if (clearOptionalTail) opts.greedy = false;
|
|
if (clearOptionalTail) opts.greedy = false;
|
|
@@ -2104,6 +2104,7 @@
|
|
|
mouseEnter = false;
|
|
mouseEnter = false;
|
|
|
if (opts.clearMaskOnLostFocus && document.activeElement !== input) {
|
|
if (opts.clearMaskOnLostFocus && document.activeElement !== input) {
|
|
|
input.placeholder = originalPlaceholder;
|
|
input.placeholder = originalPlaceholder;
|
|
|
|
|
+ if (input.placeholder === "") input.removeAttribute("placeholder");
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
clickEvent: function clickEvent(e, tabbed) {
|
|
clickEvent: function clickEvent(e, tabbed) {
|
|
@@ -2188,6 +2189,7 @@
|
|
|
var $input = $(this), input = this;
|
|
var $input = $(this), input = this;
|
|
|
if (input.inputmask) {
|
|
if (input.inputmask) {
|
|
|
input.placeholder = originalPlaceholder;
|
|
input.placeholder = originalPlaceholder;
|
|
|
|
|
+ if (input.placeholder === "") input.removeAttribute("placeholder");
|
|
|
var nptValue = input.inputmask._valueGet(), buffer = getBuffer().slice();
|
|
var nptValue = input.inputmask._valueGet(), buffer = getBuffer().slice();
|
|
|
if (nptValue !== "" || colorMask !== undefined) {
|
|
if (nptValue !== "" || colorMask !== undefined) {
|
|
|
if (opts.clearMaskOnLostFocus) {
|
|
if (opts.clearMaskOnLostFocus) {
|