Browse Source

Fixed the title attribute for choices on "multiple" widgets.

Loic Bistuer 10 years ago
parent
commit
170ca5f57b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/js/select2/selection/multiple.js

+ 1 - 1
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);