ソースを参照

on clear cleared tooltip too when placeholder present

shivamgupta001 8 年 前
コミット
e2c654b0ec
1 ファイル変更2 行追加0 行削除
  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) {