From a4dc0ba522fb15dd3cb3dbec7180fa7ebadf8d79 Mon Sep 17 00:00:00 2001 From: Jonathan Forby Date: Wed, 14 Aug 2013 16:54:10 -0400 Subject: [PATCH] Fix missing dropdownCssClass on init Fixes issue #1615 where dropdownCssClass is no longer applied. --- select2.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/select2.js b/select2.js index c31c7fcf..2146b6ee 100644 --- a/select2.js +++ b/select2.js @@ -692,10 +692,11 @@ the specific language governing permissions and limitations under the Apache Lic this.container.data("select2", this); 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.dropdown.addClass(evaluate(opts.dropdownCssClass)); + this.dropdown.data("select2", this); this.results = results = this.container.find(resultsSelector); this.search = search = this.container.find("input.select2-input");