Revert selectwoo change to fix #23328
This commit is contained in:
parent
9863362de3
commit
705c305ef4
|
@ -1613,7 +1613,7 @@ S2.define('select2/selection/single',[
|
||||||
var $rendered = this.$selection.find('.select2-selection__rendered');
|
var $rendered = this.$selection.find('.select2-selection__rendered');
|
||||||
var formatted = this.display(selection, $rendered);
|
var formatted = this.display(selection, $rendered);
|
||||||
|
|
||||||
$rendered.empty().text(formatted);
|
$rendered.empty().append(formatted);
|
||||||
$rendered.prop('title', selection.title || selection.text);
|
$rendered.prop('title', selection.title || selection.text);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1613,7 +1613,7 @@ S2.define('select2/selection/single',[
|
||||||
var $rendered = this.$selection.find('.select2-selection__rendered');
|
var $rendered = this.$selection.find('.select2-selection__rendered');
|
||||||
var formatted = this.display(selection, $rendered);
|
var formatted = this.display(selection, $rendered);
|
||||||
|
|
||||||
$rendered.empty().text(formatted);
|
$rendered.empty().append(formatted);
|
||||||
$rendered.prop('title', selection.title || selection.text);
|
$rendered.prop('title', selection.title || selection.text);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue