on clear cleared tooltip too when placeholder present
This commit is contained in:
parent
e2c654b0ec
commit
1cf42cf6a8
5
src/js/select2/selection/single.js
vendored
5
src/js/select2/selection/single.js
vendored
@ -67,8 +67,9 @@ define([
|
||||
|
||||
SingleSelection.prototype.clear = function () {
|
||||
|
||||
this.$selection.find('.select2-selection__rendered').empty();
|
||||
this.$selection.find('.select2-selection__rendered').attr('title',''); // clear tooltip on empty
|
||||
var $rendered = this.$selection.find('.select2-selection__rendered');
|
||||
$rendered.empty();
|
||||
$rendered.attr('title',''); // clear tooltip on empty
|
||||
};
|
||||
|
||||
SingleSelection.prototype.display = function (data, container) {
|
||||
|
Loading…
Reference in New Issue
Block a user