Преглед на файлове

Merge pull request #3074 from loic/title_when_multiple

Fixed the title attribute for choices on "multiple" widgets.
Kevin Brown преди 10 години
родител
ревизия
4eaa8c5488
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);