Robin Herbots 9 年之前
父节点
当前提交
2deae46cca
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      CHANGELOG.md
  2. 1 1
      js/inputmask.js

+ 1 - 1
CHANGELOG.md

@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
 ### Updates
 - patchValueProperty - enable native value property patch on IE10/IE11
 
-## Fixed
+### Fixed
 - error occurs in safari 9.0.3 (11601.4.4) #1191
 - Can not clear value when select all and press BACKSPACE in some circumstance #1179
 - Email mask incorrectly including underscore #868 => allowed as not typed => result invalid

+ 1 - 1
js/inputmask.js

@@ -2050,7 +2050,7 @@
 						var $input = $(this),
 							input = this,
 							value = input.inputmask._valueGet();
-						if (value !== getBuffer().join("") && getLastValidPosition() > 0) {
+						if (value !== getBuffer().join("") /*&& getLastValidPosition() > 0*/) {
 							$input.trigger("setvalue");
 						}
 					});