Explorar el Código

on clear cleared tooltip too when placeholder present

shivamgupta001 hace 8 años
padre
commit
e2c654b0ec
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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) {