Forráskód Böngészése

on clear cleared tooltip too when placeholder present

shivamgupta001 8 éve
szülő
commit
e2c654b0ec
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      src/js/select2/selection/single.js

+ 2 - 0
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) {