ソースを参照

added novaluepatching option #1276

Robin Herbots 8 年 前
コミット
aadc55ca87
3 ファイル変更9 行追加1 行削除
  1. 4 0
      CHANGELOG.md
  2. 4 0
      README.md
  3. 1 1
      js/inputmask.js

+ 4 - 0
CHANGELOG.md

@@ -2,10 +2,14 @@
 All notable changes to this project will be documented in this file.
 All notable changes to this project will be documented in this file.
 
 
 ## [UNRELEASED]
 ## [UNRELEASED]
+### added
+- noValuePatching option #1276
+
 ### Updates
 ### Updates
 - alternator syntax update - regex like alternations is now supported (aa|99|AA) ~ aa or 99 or AA
 - alternator syntax update - regex like alternations is now supported (aa|99|AA) ~ aa or 99 or AA
 
 
 ### Fixed
 ### Fixed
+- integer backspace bug when set maxLength attr. #1546
 - Regex with placeholder, not working? #798
 - Regex with placeholder, not working? #798
 - Visualize regular expressions #1040
 - Visualize regular expressions #1040
 - Mobile phone code update needed for Malaysia #1571
 - Mobile phone code update needed for Malaysia #1571

+ 4 - 0
README.md

@@ -1017,6 +1017,10 @@ Inputmask("(99 99 999999)|(i{+})", {
 Return nothing when the user hasn't entered anything.
 Return nothing when the user hasn't entered anything.
 Default: true
 Default: true
 
 
+### noValuePatching
+Disable value property patching  
+Default: false
+
 ### positionCaretOnClick
 ### positionCaretOnClick
 Positioning of the caret on click.  Options none, lvp (based on the last valid position (default), radixFocus (position caret to radixpoint on initial click)
 Positioning of the caret on click.  Options none, lvp (based on the last valid position (default), radixFocus (position caret to radixpoint on initial click)
 Default: "lvp"
 Default: "lvp"

+ 1 - 1
js/inputmask.js

@@ -113,7 +113,7 @@
 			jitMasking: false, //just in time masking ~ only mask while typing, can n (number), true or false
 			jitMasking: false, //just in time masking ~ only mask while typing, can n (number), true or false
 			nullable: true, //return nothing instead of the buffertemplate when the user hasn't entered anything.
 			nullable: true, //return nothing instead of the buffertemplate when the user hasn't entered anything.
 			inputEventOnly: false, //dev option - testing inputfallback behavior
 			inputEventOnly: false, //dev option - testing inputfallback behavior
-			noValuePatching: false, //dev option - disable value property patching
+			noValuePatching: false, //disable value property patching
 			positionCaretOnClick: "lvp", //none, lvp (based on the last valid position (default), radixFocus (position caret to radixpoint on initial click)
 			positionCaretOnClick: "lvp", //none, lvp (based on the last valid position (default), radixFocus (position caret to radixpoint on initial click)
 			casing: null, //mask-level casing. Options: null, "upper", "lower" or "title"
 			casing: null, //mask-level casing. Options: null, "upper", "lower" or "title"
 			inputmode: "verbatim", //specify the inputmode  - already in place for when browsers will support it
 			inputmode: "verbatim", //specify the inputmode  - already in place for when browsers will support it