We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 093f92c + 79228ce commit 839d4dbCopy full SHA for 839d4db
1 file changed
select2.js
@@ -2494,7 +2494,7 @@ the specific language governing permissions and limitations under the Apache Lic
2494
2495
formatted=this.opts.formatSelection(data, choice.find("div"));
2496
if (formatted != undefined) {
2497
- choice.find("div").replaceWith("<div>"+this.opts.escapeMarkup(formatted)+"</div>");
+ choice.find("div").replaceWith("<div title='"+this.opts.escapeMarkup(formatted)+"'>"+this.opts.escapeMarkup(formatted)+"</div>");
2498
}
2499
2500
if(enableChoice){
0 commit comments