From 170ca5f57bafa358debbb5d741dc7205a9bc18aa Mon Sep 17 00:00:00 2001 From: Loic Bistuer Date: Thu, 26 Feb 2015 11:22:05 +0700 Subject: [PATCH] Fixed the title attribute for choices on "multiple" widgets. --- src/js/select2/selection/multiple.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/select2/selection/multiple.js b/src/js/select2/selection/multiple.js index 360c058a..64a8ea27 100644 --- a/src/js/select2/selection/multiple.js +++ b/src/js/select2/selection/multiple.js @@ -85,7 +85,7 @@ define([ var $selection = this.selectionContainer(); $selection.append(formatted); - $selection.prop('title', selection.title); + $selection.prop('title', selection.title || selection.text); $selection.data('data', selection);