浏览代码

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