1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Clear placeholder before opening dropdown, fixes #129

Signed-off-by: Igor Vaynberg <igor.vaynberg@github.com>
This commit is contained in:
Aziz Gazanchiyan 2012-06-17 15:38:00 +03:00 committed by Igor Vaynberg
parent 7684371923
commit a0f067c2b2

View File

@ -683,6 +683,7 @@
open: function () { open: function () {
if (this.opened()) return; if (this.opened()) return;
this.clearPlaceholder();
this.container.addClass("select2-dropdown-open").addClass("select2-container-active"); this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
this.dropdown.detach().appendTo(this.opts.element.parents("body")).addClass("select2-drop-active"); this.dropdown.detach().appendTo(this.opts.element.parents("body")).addClass("select2-drop-active");