allow opts.dropdownCss to override css even after position. fixes #328
This commit is contained in:
parent
7b60524b35
commit
afd353788b
@ -967,8 +967,6 @@
|
|||||||
|
|
||||||
if (this.search.val() === " ") { this.search.val(""); }
|
if (this.search.val() === " ") { this.search.val(""); }
|
||||||
|
|
||||||
this.dropdown.css(evaluate(this.opts.dropdownCss));
|
|
||||||
this.dropdown.addClass("select2-drop-active");
|
|
||||||
this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
|
this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
|
||||||
|
|
||||||
this.updateResults(true);
|
this.updateResults(true);
|
||||||
@ -978,9 +976,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.dropdown.show();
|
this.dropdown.show();
|
||||||
this.ensureHighlightVisible();
|
|
||||||
|
|
||||||
this.positionDropdown();
|
this.positionDropdown();
|
||||||
|
this.dropdown.css(evaluate(this.opts.dropdownCss));
|
||||||
|
this.dropdown.addClass("select2-drop-active");
|
||||||
|
|
||||||
|
this.ensureHighlightVisible();
|
||||||
|
|
||||||
this.focusSearch();
|
this.focusSearch();
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user