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