Skip to content

Commit e2c654b

Browse files
shivamgupta001alexweissman
authored andcommitted
on clear cleared tooltip too when placeholder present
1 parent ef2ef8b commit e2c654b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/js/select2/selection/single.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ define([
6666
};
6767

6868
SingleSelection.prototype.clear = function () {
69+
6970
this.$selection.find('.select2-selection__rendered').empty();
71+
this.$selection.find('.select2-selection__rendered').attr('title',''); // clear tooltip on empty
7072
};
7173

7274
SingleSelection.prototype.display = function (data, container) {

0 commit comments

Comments
 (0)