Skip to content

Commit 839d4db

Browse files
committed
Merge pull request select2#1222 from orloffv/patch-1
add title for choice item
2 parents 093f92c + 79228ce commit 839d4db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2494,7 +2494,7 @@ the specific language governing permissions and limitations under the Apache Lic
24942494

24952495
formatted=this.opts.formatSelection(data, choice.find("div"));
24962496
if (formatted != undefined) {
2497-
choice.find("div").replaceWith("<div>"+this.opts.escapeMarkup(formatted)+"</div>");
2497+
choice.find("div").replaceWith("<div title='"+this.opts.escapeMarkup(formatted)+"'>"+this.opts.escapeMarkup(formatted)+"</div>");
24982498
}
24992499

25002500
if(enableChoice){

0 commit comments

Comments
 (0)