Skip to content

Commit e7dee23

Browse files
committed
reapply styles specified in dropdownCss option when dropdown is opened to ensure they do not get removed. fixes select2#305
1 parent 220e50f commit e7dee23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@
497497
this.container.data("select2", this);
498498

499499
this.dropdown = this.container.find(".select2-drop");
500-
this.dropdown.css(evaluate(opts.dropdownCss));
501500
this.dropdown.addClass(evaluate(opts.dropdownCssClass));
502501
this.dropdown.data("select2", this);
503502

@@ -886,6 +885,7 @@
886885

887886
if (this.search.val() === " ") { this.search.val(""); }
888887

888+
this.dropdown.css(evaluate(this.opts.dropdownCss));
889889
this.dropdown.addClass("select2-drop-active");
890890
this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
891891

0 commit comments

Comments
 (0)