Skip to content

Commit a0f067c

Browse files
creageIgor Vaynberg
authored andcommitted
Clear placeholder before opening dropdown, fixes select2#129
Signed-off-by: Igor Vaynberg <igor.vaynberg@github.com>
1 parent 7684371 commit a0f067c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

select2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@
683683

684684
open: function () {
685685
if (this.opened()) return;
686+
this.clearPlaceholder();
686687

687688
this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
688689
this.dropdown.detach().appendTo(this.opts.element.parents("body")).addClass("select2-drop-active");

0 commit comments

Comments
 (0)