ソースを参照

fix for changeevent

Robin Herbots 14 年 前
コミット
7b0739f404
1 ファイル変更1 行追加3 行削除
  1. 1 3
      jquery.inputmask.js

+ 1 - 3
jquery.inputmask.js

@@ -514,9 +514,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
                         var $input = $(this), input = this, nptValue = input._valueGet();
                         var $input = $(this), input = this, nptValue = input._valueGet();
                         $input.removeClass('focus.inputmask');
                         $input.removeClass('focus.inputmask');
                         if (nptValue != undoBuffer) {
                         if (nptValue != undoBuffer) {
-                            setTimeout(function() { //move the change event to later, ...
-                                $input.change();
-                            }, 0);
+                            $input.change();
                         }
                         }
                         if (opts.clearMaskOnLostFocus) {
                         if (opts.clearMaskOnLostFocus) {
                             if (nptValue == _buffer.join(''))
                             if (nptValue == _buffer.join(''))