Browse Source

date autocomplete error #630

Robin Herbots 11 years ago
parent
commit
94607dfa2d

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "jquery.inputmask",
   "name": "jquery.inputmask",
-  "version": "3.1.4",
+  "version": "3.1.5",
   "main": [
   "main": [
     "./dist/inputmask/jquery.inputmask.js",
     "./dist/inputmask/jquery.inputmask.js",
     "./dist/inputmask/jquery.inputmask.extensions.js",
     "./dist/inputmask/jquery.inputmask.extensions.js",

+ 1 - 1
build.properties

@@ -7,7 +7,7 @@ distdir = dist
 
 
 build.major = 3
 build.major = 3
 build.minor = 1
 build.minor = 1
-build.revision = 4
+build.revision = 5
 
 
 target = jquery.inputmask.bundle.js
 target = jquery.inputmask.bundle.js
 target.min = jquery.inputmask.bundle.min.js
 target.min = jquery.inputmask.bundle.min.js

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


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

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2014 Robin Herbots
 * Copyright (c) 2010 - 2014 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: 3.1.4
+* Version: 3.1.5
 */
 */
 
 
 (function (factory) {
 (function (factory) {
@@ -1615,19 +1615,19 @@
                     ).bind("keyup.inputmask", keyupEvent
                     ).bind("keyup.inputmask", keyupEvent
                     ).bind("compositionupdate.inputmask", compositionupdateEvent);
                     ).bind("compositionupdate.inputmask", compositionupdateEvent);
 
 
-                    if (PasteEventType === "paste") {
+                    if (PasteEventType === "paste" && !msie1x) {
                         $el.bind("input.inputmask", inputFallBackEvent);
                         $el.bind("input.inputmask", inputFallBackEvent);
                     }
                     }
+                    if (msie1x) { //todo enhance inputFallBack to handle this case
+                        $el.bind("input.inputmask", pasteEvent);
+                    }
                     if (android || androidfirefox || androidchrome || kindle) {
                     if (android || androidfirefox || androidchrome || kindle) {
                         if (PasteEventType == "input") {
                         if (PasteEventType == "input") {
                             $el.unbind(PasteEventType + ".inputmask");
                             $el.unbind(PasteEventType + ".inputmask");
                         }
                         }
                         $el.bind("input.inputmask", mobileInputEvent);
                         $el.bind("input.inputmask", mobileInputEvent);
                     }
                     }
-
-                    if (msie1x)
-                        $el.bind("input.inputmask", pasteEvent);
-
+                    
                     patchValueProperty(el);
                     patchValueProperty(el);
 
 
                     //apply mask
                     //apply mask
@@ -1979,7 +1979,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 Copyright (c) 2010 - 2014 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: 3.1.4
+Version: 3.1.5
 
 
 Optional extensions on the jquery.inputmask base
 Optional extensions on the jquery.inputmask base
 */
 */
@@ -2107,7 +2107,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 Copyright (c) 2010 - 2014 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: 3.1.4
+Version: 3.1.5
 
 
 Optional extensions on the jquery.inputmask base
 Optional extensions on the jquery.inputmask base
 */
 */
@@ -2603,7 +2603,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 Copyright (c) 2010 - 2014 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: 3.1.4
+Version: 3.1.5
 
 
 Optional extensions on the jquery.inputmask base
 Optional extensions on the jquery.inputmask base
 */
 */
@@ -2863,7 +2863,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 Copyright (c) 2010 - 2014 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: 3.1.4
+Version: 3.1.5
 
 
 Regex extensions on the jquery.inputmask base
 Regex extensions on the jquery.inputmask base
 Allows for using regular expressions as a mask
 Allows for using regular expressions as a mask
@@ -3057,7 +3057,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 Copyright (c) 2010 - 2014 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: 3.1.4
+Version: 3.1.5
 
 
 Phone extension.
 Phone extension.
 When using this extension make sure you specify the correct url to get the masks
 When using this extension make sure you specify the correct url to get the masks

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


+ 1 - 1
jquery.inputmask.jquery.json

@@ -8,7 +8,7 @@
 		"inputmask",
 		"inputmask",
 		"mask"
 		"mask"
     ],
     ],
-    "version": "3.1.4",
+    "version": "3.1.5",
     "author": {
     "author": {
         "name": "Robin Herbots",
         "name": "Robin Herbots",
         "url": "http://github.com/RobinHerbots/jquery.inputmask"
         "url": "http://github.com/RobinHerbots/jquery.inputmask"

+ 5 - 5
js/jquery.inputmask.js

@@ -1615,19 +1615,19 @@
                     ).bind("keyup.inputmask", keyupEvent
                     ).bind("keyup.inputmask", keyupEvent
                     ).bind("compositionupdate.inputmask", compositionupdateEvent);
                     ).bind("compositionupdate.inputmask", compositionupdateEvent);
 
 
-                    if (PasteEventType === "paste") {
+                    if (PasteEventType === "paste" && !msie1x) {
                         $el.bind("input.inputmask", inputFallBackEvent);
                         $el.bind("input.inputmask", inputFallBackEvent);
                     }
                     }
+                    if (msie1x) { //todo enhance inputFallBack to handle this case
+                        $el.bind("input.inputmask", pasteEvent);
+                    }
                     if (android || androidfirefox || androidchrome || kindle) {
                     if (android || androidfirefox || androidchrome || kindle) {
                         if (PasteEventType == "input") {
                         if (PasteEventType == "input") {
                             $el.unbind(PasteEventType + ".inputmask");
                             $el.unbind(PasteEventType + ".inputmask");
                         }
                         }
                         $el.bind("input.inputmask", mobileInputEvent);
                         $el.bind("input.inputmask", mobileInputEvent);
                     }
                     }
-
-                    if (msie1x)
-                        $el.bind("input.inputmask", pasteEvent);
-
+                    
                     patchValueProperty(el);
                     patchValueProperty(el);
 
 
                     //apply mask
                     //apply mask

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "jquery.inputmask",
   "name": "jquery.inputmask",
-  "version": "3.1.4",
+  "version": "3.1.5",
   "description": "jquery.inputmask is a jquery plugin which create an input mask.",
   "description": "jquery.inputmask is a jquery plugin which create an input mask.",
   "main": [
   "main": [
     "./dist/inputmask/jquery.inputmask.js",
     "./dist/inputmask/jquery.inputmask.js",