Skip to content

Commit 236fb0e

Browse files
committed
Merge pull request select2#1617 from forby/master
Fix missing dropdownCssClass on init
2 parents 6aea56b + a4dc0ba commit 236fb0e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

select2.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,10 +692,11 @@ the specific language governing permissions and limitations under the Apache Lic
692692
this.container.data("select2", this);
693693

694694
this.dropdown = this.container.find(".select2-drop");
695-
this.dropdown.addClass(evaluate(opts.dropdownCssClass));
696-
this.dropdown.data("select2", this);
697695

698696
syncCssClasses(this.dropdown, this.opts.element, this.opts.adaptDropdownCssClass);
697+
698+
this.dropdown.addClass(evaluate(opts.dropdownCssClass));
699+
this.dropdown.data("select2", this);
699700

700701
this.results = results = this.container.find(resultsSelector);
701702
this.search = search = this.container.find("input.select2-input");

0 commit comments

Comments
 (0)