Robin Herbots 7 years ago
parent
commit
a9429d7aa4

+ 4 - 0
CHANGELOG.md

@@ -1,5 +1,9 @@
 # Change Log
 
+## [4.0.4 - 2019-01-09]
+### Fixed
+Original placeholder disappear when mouseout in IE #2047
+
 ## [4.0.4 - 2018-12-03]
 ### Addition
 - add url as supported input type

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "inputmask",
-  "version": "4.0.4",
+  "version": "4.0.5",
   "main": [
 	  "./index.js",
     "./css/inputmask.css"

+ 1 - 1
composer.json

@@ -1,7 +1,7 @@
 {
   "name": "robinherbots/inputmask",
   "description": "Inputmask is a javascript library which creates an input mask.  Inputmask can run against vanilla javascript, jQuery and jqlite.",
-  "version": "4.0.4",
+  "version": "4.0.5",
   "type": "library",
   "keywords": ["jquery", "plugins", "input", "form", "inputmask", "mask"],
   "homepage": "http://robinherbots.github.io/Inputmask",

+ 2 - 2
dist/inputmask/bindings/inputmask.binding.js

@@ -1,9 +1,9 @@
 /*!
 * bindings/inputmask.binding.js
 * https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2018 Robin Herbots
+* Copyright (c) 2010 - 2019 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.4
+* Version: 4.0.5
 */
 
 (function(factory) {

+ 2 - 2
dist/inputmask/dependencyLibs/inputmask.dependencyLib.jqlite.js

@@ -1,9 +1,9 @@
 /*!
 * dependencyLibs/inputmask.dependencyLib.jqlite.js
 * https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2018 Robin Herbots
+* Copyright (c) 2010 - 2019 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.4
+* Version: 4.0.5
 */
 
 (function(factory) {

+ 2 - 2
dist/inputmask/dependencyLibs/inputmask.dependencyLib.jquery.js

@@ -1,9 +1,9 @@
 /*!
 * dependencyLibs/inputmask.dependencyLib.jquery.js
 * https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2018 Robin Herbots
+* Copyright (c) 2010 - 2019 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.4
+* Version: 4.0.5
 */
 
 (function(factory) {

+ 2 - 2
dist/inputmask/dependencyLibs/inputmask.dependencyLib.js

@@ -1,9 +1,9 @@
 /*!
 * dependencyLibs/inputmask.dependencyLib.js
 * https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2018 Robin Herbots
+* Copyright (c) 2010 - 2019 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.4
+* Version: 4.0.5
 */
 
 (function(factory) {

+ 2 - 2
dist/inputmask/global/window.js

@@ -1,9 +1,9 @@
 /*!
 * global/window.js
 * https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2018 Robin Herbots
+* Copyright (c) 2010 - 2019 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.4
+* Version: 4.0.5
 */
 
 if (typeof define === "function" && define.amd) define(function() {

+ 2 - 2
dist/inputmask/inputmask.date.extensions.js

@@ -1,9 +1,9 @@
 /*!
 * inputmask.date.extensions.js
 * https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2018 Robin Herbots
+* Copyright (c) 2010 - 2019 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.4
+* Version: 4.0.5
 */
 
 (function(factory) {

+ 2 - 2
dist/inputmask/inputmask.extensions.js

@@ -1,9 +1,9 @@
 /*!
 * inputmask.extensions.js
 * https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2018 Robin Herbots
+* Copyright (c) 2010 - 2019 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.4
+* Version: 4.0.5
 */
 
 (function(factory) {

+ 3 - 3
dist/inputmask/inputmask.js

@@ -1,9 +1,9 @@
 /*!
 * inputmask.js
 * https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2018 Robin Herbots
+* Copyright (c) 2010 - 2019 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.4
+* Version: 4.0.5
 */
 
 (function(factory) {
@@ -1577,7 +1577,7 @@
         }
         function HandleNativePlaceholder(npt, value) {
             if (ie) {
-                if (npt.inputmask._valueGet() !== value) {
+                if (npt.inputmask._valueGet() !== value && (npt.placeholder !== value || npt.placeholder === "")) {
                     var buffer = getBuffer().slice(), nptValue = npt.inputmask._valueGet();
                     if (nptValue !== value) {
                         var lvp = getLastValidPosition();

+ 2 - 2
dist/inputmask/inputmask.numeric.extensions.js

@@ -1,9 +1,9 @@
 /*!
 * inputmask.numeric.extensions.js
 * https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2018 Robin Herbots
+* Copyright (c) 2010 - 2019 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.4
+* Version: 4.0.5
 */
 
 (function(factory) {

+ 2 - 2
dist/inputmask/jquery.inputmask.js

@@ -1,9 +1,9 @@
 /*!
 * jquery.inputmask.js
 * https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2018 Robin Herbots
+* Copyright (c) 2010 - 2019 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.4
+* Version: 4.0.5
 */
 
 (function(factory) {

+ 3 - 3
dist/jquery.inputmask.bundle.js

@@ -1,9 +1,9 @@
 /*!
 * jquery.inputmask.bundle.js
 * https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2018 Robin Herbots
+* Copyright (c) 2010 - 2019 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.4
+* Version: 4.0.5
 */
 
 (function(modules) {
@@ -1768,7 +1768,7 @@
             }
             function HandleNativePlaceholder(npt, value) {
                 if (ie) {
-                    if (npt.inputmask._valueGet() !== value) {
+                    if (npt.inputmask._valueGet() !== value && (npt.placeholder !== value || npt.placeholder === "")) {
                         var buffer = getBuffer().slice(), nptValue = npt.inputmask._valueGet();
                         if (nptValue !== value) {
                             var lvp = getLastValidPosition();

File diff suppressed because it is too large
+ 2 - 2
dist/min/inputmask/bindings/inputmask.binding.min.js


File diff suppressed because it is too large
+ 2 - 2
dist/min/inputmask/dependencyLibs/inputmask.dependencyLib.jqlite.min.js


+ 2 - 2
dist/min/inputmask/dependencyLibs/inputmask.dependencyLib.jquery.min.js

@@ -1,9 +1,9 @@
 /*!
 * dependencyLibs/inputmask.dependencyLib.jquery.min.js
 * https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2018 Robin Herbots
+* Copyright (c) 2010 - 2019 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.4
+* Version: 4.0.5
 */
 
 (function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else if(typeof exports==="object"){module.exports=factory(require("jquery"))}else{window.dependencyLib=factory(jQuery)}})(function($){return $});

File diff suppressed because it is too large
+ 2 - 2
dist/min/inputmask/dependencyLibs/inputmask.dependencyLib.min.js


+ 2 - 2
dist/min/inputmask/global/window.min.js

@@ -1,9 +1,9 @@
 /*!
 * global/window.min.js
 * https://github.com/RobinHerbots/Inputmask
-* Copyright (c) 2010 - 2018 Robin Herbots
+* Copyright (c) 2010 - 2019 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 4.0.4
+* Version: 4.0.5
 */
 
 if(typeof define==="function"&&define.amd)define(function(){return typeof window!=="undefined"?window:new(eval("require('jsdom').JSDOM"))("").window});else if(typeof exports==="object")module.exports=typeof window!=="undefined"?window:new(eval("require('jsdom').JSDOM"))("").window;

File diff suppressed because it is too large
+ 2 - 2
dist/min/inputmask/inputmask.date.extensions.min.js


File diff suppressed because it is too large
+ 2 - 2
dist/min/inputmask/inputmask.extensions.min.js


File diff suppressed because it is too large
+ 3 - 3
dist/min/inputmask/inputmask.min.js


File diff suppressed because it is too large
+ 2 - 2
dist/min/inputmask/inputmask.numeric.extensions.min.js


File diff suppressed because it is too large
+ 2 - 2
dist/min/inputmask/jquery.inputmask.min.js


File diff suppressed because it is too large
+ 3 - 3
dist/min/jquery.inputmask.bundle.min.js


+ 1 - 1
js/inputmask.js

@@ -1871,7 +1871,7 @@ function maskScope(actionObj, maskset, opts) {
 
     function HandleNativePlaceholder(npt, value) {
         if (ie) {
-            if (npt.inputmask._valueGet() !== value) {
+            if (npt.inputmask._valueGet() !== value && (npt.placeholder !== value || npt.placeholder === "")) {
                 var buffer = getBuffer().slice(),
                     nptValue = npt.inputmask._valueGet();
                 if (nptValue !== value) {

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "inputmask",
-  "version": "4.0.4",
+  "version": "4.0.5",
   "description": "Inputmask is a javascript library which creates an input mask.  Inputmask can run against vanilla javascript, jQuery and jqlite.",
   "main": "index.js",
   "files": [