Igor Vaynberg пре 12 година
родитељ
комит
8008bfa8dc
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      select2.js

+ 2 - 2
select2.js

@@ -765,7 +765,7 @@ the specific language governing permissions and limitations under the Apache Lic
                     text:element.text(),
                     element: element.get(),
                     css: element.attr("class"),
-                    disabled: equal(element.attr("disabled"), "disabled"),
+                    disabled: element.prop("disabled"),
                     locked: equal(element.attr("locked"), "locked")
                 };
             } else if (element.is("optgroup")) {
@@ -1714,7 +1714,7 @@ the specific language governing permissions and limitations under the Apache Lic
                 this.search.val(this.focusser.val());
             }
             this.search.focus();
-            this.focusser.attr("disabled", "disabled").val("");
+            this.focusser.prop("disabled", true).val("");
             this.updateResults(true);
             this.opts.element.trigger($.Event("open"));
         },