fix placeholder styling broken in a previous code cleanup. closes #12
This commit is contained in:
parent
538c6d1584
commit
6bef0b5bf6
@ -770,8 +770,10 @@
|
|||||||
SingleSelect2.prototype.updateSelection = function (data) {
|
SingleSelect2.prototype.updateSelection = function (data) {
|
||||||
this.selection
|
this.selection
|
||||||
.find("span")
|
.find("span")
|
||||||
.html(this.opts.formatSelection(data))
|
.html(this.opts.formatSelection(data));
|
||||||
.removeClass("select2-default");
|
|
||||||
|
this.selection.removeClass("select2-default");
|
||||||
|
|
||||||
if (this.opts.allowClear && this.getPlaceholder() !== undefined) {
|
if (this.opts.allowClear && this.getPlaceholder() !== undefined) {
|
||||||
this.selection.find("abbr").show();
|
this.selection.find("abbr").show();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user