ソースを参照

don't try to apply the mask on non input elements

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

+ 1 - 0
jquery.inputmask.js

@@ -470,6 +470,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
 
 
             function mask(el) {
             function mask(el) {
                 var $input = $(el);
                 var $input = $(el);
+                if (!$input.is(":input")) return;
 
 
                 //store tests & original buffer in the input element - used to get the unmasked value
                 //store tests & original buffer in the input element - used to get the unmasked value
                 $input.data('inputmask', {
                 $input.data('inputmask', {