1
0
mirror of synced 2025-02-04 06:09:23 +03:00

clear the ' ' placeholder on open

This commit is contained in:
Igor Vaynberg 2012-07-05 11:24:36 +03:00
parent 6a5719db80
commit 9c864f1da0

View File

@ -759,6 +759,8 @@
if (!this.shouldOpen()) return false;
if (this.search.val() === " ") { this.search.val(""); }
this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
if(this.dropdown[0] !== this.body.children().last()[0]) {
// ensure the dropdown is the last child of body, so the z-index is always respected correctly