ソースを参照

adds support for input type search

Ryan Van Ess 8 年 前
コミット
1c1b462ba8
4 ファイル変更4 行追加3 行削除
  1. 1 0
      README.md
  2. 1 1
      dist/inputmask/inputmask.js
  3. 1 1
      dist/jquery.inputmask.bundle.js
  4. 1 1
      js/inputmask.js

+ 1 - 0
README.md

@@ -190,6 +190,7 @@ $(document).ready(function(){
 
 ### Allowed HTML-elements
 - `<input type="text">`
+- `<input type="search">`
 - `<input type="tel">`
 - `<input type="password">`
 - `<div contenteditable="true">` (and all others supported by contenteditable)

+ 1 - 1
dist/inputmask/inputmask.js

@@ -1261,7 +1261,7 @@
             keepStatic: null,
             positionCaretOnTab: !0,
             tabThrough: !1,
-            supportsInputType: [ "text", "tel", "password" ],
+            supportsInputType: [ "text", "tel", "password", "search" ],
             ignorables: [ 8, 9, 13, 19, 27, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229 ],
             isComplete: null,
             canClearPosition: $.noop,

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

@@ -1306,7 +1306,7 @@
                 keepStatic: null,
                 positionCaretOnTab: !0,
                 tabThrough: !1,
-                supportsInputType: [ "text", "tel", "password" ],
+                supportsInputType: [ "text", "tel", "password", "search" ],
                 ignorables: [ 8, 9, 13, 19, 27, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229 ],
                 isComplete: null,
                 canClearPosition: $.noop,

+ 1 - 1
js/inputmask.js

@@ -101,7 +101,7 @@
             keepStatic: null, //try to keep the mask static while typing. Decisions to alter the mask will be posponed if possible - null see auto selection for multi masks
             positionCaretOnTab: true, //when enabled the caret position is set after the latest valid position on TAB
             tabThrough: false, //allows for tabbing through the different parts of the masked field
-            supportsInputType: ["text", "tel", "password"], //list with the supported input types
+            supportsInputType: ["text", "tel", "password", "search"], //list with the supported input types
             //specify keyCodes which should not be considered in the keypress event, otherwise the preventDefault will stop their default behavior especially in FF
             ignorables: [8, 9, 13, 19, 27, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229],
             isComplete: null, //override for isComplete - args => buffer, opts - return true || false