Explorar o código

on clear cleared tooltip too when placeholder present

shivamgupta001 %!s(int64=8) %!d(string=hai) anos
pai
achega
e2c654b0ec
Modificáronse 1 ficheiros con 2 adicións e 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) {