ソースを参照

date autocomplete error #630

Robin Herbots 11 年 前
コミット
94607dfa2d

+ 1 - 1
bower.json

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

+ 1 - 1
build.properties

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

ファイルの差分が大きいため隠しています
+ 14 - 14
dist/inputmask/jquery.inputmask.js


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

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2014 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 3.1.4
+* Version: 3.1.5
 */
 
 (function (factory) {
@@ -1615,19 +1615,19 @@
                     ).bind("keyup.inputmask", keyupEvent
                     ).bind("compositionupdate.inputmask", compositionupdateEvent);
 
-                    if (PasteEventType === "paste") {
+                    if (PasteEventType === "paste" && !msie1x) {
                         $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 (PasteEventType == "input") {
                             $el.unbind(PasteEventType + ".inputmask");
                         }
                         $el.bind("input.inputmask", mobileInputEvent);
                     }
-
-                    if (msie1x)
-                        $el.bind("input.inputmask", pasteEvent);
-
+                    
                     patchValueProperty(el);
 
                     //apply mask
@@ -1979,7 +1979,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 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
 */
@@ -2107,7 +2107,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 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
 */
@@ -2603,7 +2603,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 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
 */
@@ -2863,7 +2863,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 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
 Allows for using regular expressions as a mask
@@ -3057,7 +3057,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 3.1.4
+Version: 3.1.5
 
 Phone extension.
 When using this extension make sure you specify the correct url to get the masks

ファイルの差分が大きいため隠しています
+ 2 - 2
dist/jquery.inputmask.bundle.min.js


+ 1 - 1
jquery.inputmask.jquery.json

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

+ 5 - 5
js/jquery.inputmask.js

@@ -1615,19 +1615,19 @@
                     ).bind("keyup.inputmask", keyupEvent
                     ).bind("compositionupdate.inputmask", compositionupdateEvent);
 
-                    if (PasteEventType === "paste") {
+                    if (PasteEventType === "paste" && !msie1x) {
                         $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 (PasteEventType == "input") {
                             $el.unbind(PasteEventType + ".inputmask");
                         }
                         $el.bind("input.inputmask", mobileInputEvent);
                     }
-
-                    if (msie1x)
-                        $el.bind("input.inputmask", pasteEvent);
-
+                    
                     patchValueProperty(el);
 
                     //apply mask

+ 1 - 1
package.json

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