Browse Source

Clear placeholder before opening dropdown, fixes #129

Signed-off-by: Igor Vaynberg <[email protected]>
Aziz Gazanchiyan 13 years ago
parent
commit
a0f067c2b2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      select2.js

+ 1 - 0
select2.js

@@ -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");