1
0
mirror of synced 2024-11-26 06:46:04 +03:00

on clear cleared tooltip too when placeholder present

This commit is contained in:
shivamgupta001 2017-01-12 01:31:13 +05:30 committed by alexweissman
parent e2c654b0ec
commit 1cf42cf6a8

View File

@ -67,8 +67,9 @@ define([
SingleSelection.prototype.clear = function () { SingleSelection.prototype.clear = function () {
this.$selection.find('.select2-selection__rendered').empty(); var $rendered = this.$selection.find('.select2-selection__rendered');
this.$selection.find('.select2-selection__rendered').attr('title',''); // clear tooltip on empty $rendered.empty();
$rendered.attr('title',''); // clear tooltip on empty
}; };
SingleSelection.prototype.display = function (data, container) { SingleSelection.prototype.display = function (data, container) {