ソースを参照

support readonly attribute by disabling select2. fixes #293

Igor Vaynberg 12 年 前
コミット
15b654a170
1 ファイル変更1 行追加1 行削除
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -559,7 +559,7 @@
                 this.monitorSource();
             }
 
-            if (opts.element.is(":disabled")) this.disable();
+            if (opts.element.is(":disabled") || opts.element.is("[readonly='readonly']")) this.disable();
         },
 
         // abstract