Skip to content

Commit

Permalink
on clear cleared tooltip too when placeholder present
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamgupta001 authored and alexweissman committed Oct 26, 2017
1 parent ef2ef8b commit e2c654b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/select2/selection/single.js
Expand Up @@ -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) {
Expand Down

0 comments on commit e2c654b

Please sign in to comment.