소스 검색

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