1
0
mirror of synced 2025-02-09 16:49:24 +03:00

fix placeholder styling broken in a previous code cleanup. closes #12

This commit is contained in:
Igor Vaynberg 2012-03-30 13:04:32 -07:00
parent 538c6d1584
commit 6bef0b5bf6

View File

@ -770,8 +770,10 @@
SingleSelect2.prototype.updateSelection = function (data) {
this.selection
.find("span")
.html(this.opts.formatSelection(data))
.removeClass("select2-default");
.html(this.opts.formatSelection(data));
this.selection.removeClass("select2-default");
if (this.opts.allowClear && this.getPlaceholder() !== undefined) {
this.selection.find("abbr").show();
}