1
0
mirror of synced 2024-11-21 20:46:07 +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 () {
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) {