ソースを参照

minor tweak for setvalue

Robin Herbots 11 年 前
コミット
ca3299dc9b

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


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


+ 1 - 1
js/jquery.inputmask.js

@@ -1606,7 +1606,7 @@
                         var input = this;
                         checkVal(input, true, false, undefined, true);
                         valueOnFocus = getBuffer().join('');
-                        if (input._valueGet() == getBufferTemplate().join(''))
+                        if ((opts.clearMaskOnLostFocus || opts.clearIncomplete) && input._valueGet() == getBufferTemplate().join(''))
                             input._valueSet('');
                     }).bind('complete.inputmask', opts.oncomplete
                     ).bind('incomplete.inputmask', opts.onincomplete