浏览代码

Fix: Not working adaptDropdownCssClass callback.

Streid 11 年之前
父节点
当前提交
1d1212c5ed
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      select2.js

+ 2 - 0
select2.js

@@ -694,6 +694,8 @@ the specific language governing permissions and limitations under the Apache Lic
             this.dropdown = this.container.find(".select2-drop");
             this.dropdown.addClass(evaluate(opts.dropdownCssClass));
             this.dropdown.data("select2", this);
+			
+			syncCssClasses(this.dropdown, this.opts.element, this.opts.adaptDropdownCssClass);
 
             this.results = results = this.container.find(resultsSelector);
             this.search = search = this.container.find("input.select2-input");