From e2c654b0ecae5ea4a780a5be9ed9795e5ac5687f Mon Sep 17 00:00:00 2001 From: shivamgupta001 Date: Thu, 12 Jan 2017 01:21:23 +0530 Subject: [PATCH] on clear cleared tooltip too when placeholder present --- src/js/select2/selection/single.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/select2/selection/single.js b/src/js/select2/selection/single.js index 89c21dbb..fc0a6bbe 100644 --- a/src/js/select2/selection/single.js +++ b/src/js/select2/selection/single.js @@ -66,7 +66,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 }; SingleSelection.prototype.display = function (data, container) {